Update the zsh config to not use oh-my-zsh

This commit is contained in:
Jonny Barnes 2018-01-24 15:26:36 +00:00
parent 76aa4e9504
commit 16a90e60c6
9 changed files with 163 additions and 201 deletions

View file

@ -0,0 +1,17 @@
# ZSH substring search
bindKeysZshHistoryOSX() {
zmodload zsh/terminfo
bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down
}
bindKeysZshHistoryLinux() {
zmodload zsh/terminfo
bindkey "$terminfo[cuu1]" history-substring-search-up
bindkey "$terminfo[cud1]" history-substring-search-down
}
test -e /usr/local/opt/zsh-history-substring-search/zsh-history-substring-search.zsh \
&& 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 $PLATFORM = 'linux' && bindKeysZshHistoryLinux