Update the zsh config to not use oh-my-zsh
This commit is contained in:
parent
76aa4e9504
commit
16a90e60c6
9 changed files with 163 additions and 201 deletions
17
zsh/zsh-substring-search.zsh
Normal file
17
zsh/zsh-substring-search.zsh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue