Conditionally load zsh-autosuggestions
File is located in different directories in different operating systems
This commit is contained in:
@@ -33,7 +33,15 @@ if type brew &>/dev/null; then
|
||||
compinit
|
||||
fi
|
||||
|
||||
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
# zsh-autosuggestions
|
||||
case `uname` in
|
||||
Darwin)
|
||||
[[ -f /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]] && source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
;;
|
||||
Linux)
|
||||
[[ -f /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]] && source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
;;
|
||||
esac
|
||||
# heroku autocomplete setup
|
||||
HEROKU_AC_ZSH_SETUP_PATH=/Users/myockey/Library/Caches/heroku/autocomplete/zsh_setup && test -f $HEROKU_AC_ZSH_SETUP_PATH && source $HEROKU_AC_ZSH_SETUP_PATH
|
||||
|
||||
|
||||
Reference in New Issue
Block a user