Fix more M1 issues
This commit is contained in:
parent
e8724b7da0
commit
21bf9e30a6
4 changed files with 13 additions and 4 deletions
|
@ -7,7 +7,9 @@ gencert () {
|
|||
DOMAIN=$1
|
||||
|
||||
test -d /usr/local/opt/openssl@1.1/bin && PATH='/usr/local/opt/openssl@1.1/bin':$PATH
|
||||
test -d /opt/homebrew/opt/openssl@1.1/bin && PATH='/opt/homebrew/opt/openssl@1.1/bin':$PATH
|
||||
test -f /usr/local/etc/openssl@1.1/openssl.cnf && SSLCNF='/usr/local/etc/openssl@1.1/openssl.cnf'
|
||||
test -f /opt/homebrew/etc/openssl@1.1/openssl.cnf && SSLCNF='/opt/homebrew/etc/openssl@1.1/openssl.cnf'
|
||||
test -f /etc/ssl/openssl.cnf && SSLCNF='/etc/ssl/openssl.cnf'
|
||||
|
||||
cd $HOME/git/ca
|
||||
|
|
|
@ -3,3 +3,5 @@ test -e /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh \
|
|||
&& source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
test -e /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh \
|
||||
&& source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
test -e /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh \
|
||||
&& source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
@ -1,5 +1,5 @@
|
|||
# ZSH substring search
|
||||
bindKeysZshHistoryOSX() {
|
||||
bindKeysZshHistoryMacOS() {
|
||||
zmodload zsh/terminfo
|
||||
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
||||
bindkey "$terminfo[kcud1]" history-substring-search-down
|
||||
|
@ -13,5 +13,8 @@ test -e /usr/local/opt/zsh-history-substring-search/zsh-history-substring-search
|
|||
&& source /usr/local/opt/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||
test -e /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh \
|
||||
&& source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||
test $PLATFORM = 'osx' && bindKeysZshHistoryOSX
|
||||
test -e /opt/homebrew/share/zsh-history-substring-search/zsh-history-substring-search.zsh \
|
||||
&& source /opt/homebrew/share/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||
test $PLATFORM = 'osx' && bindKeysZshHistoryMacOS
|
||||
test $PLATFORM = 'osx-m1' && bindKeysZshHistoryMacOS
|
||||
test $PLATFORM = 'linux' && bindKeysZshHistoryLinux
|
|
@ -3,3 +3,5 @@ test -e /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh \
|
|||
&& source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
test -e /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh \
|
||||
&& source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
test -e /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh \
|
||||
&& source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
Loading…
Add table
Reference in a new issue