feat(zsh): search history using up and down arrows
This commit is contained in:
parent
4d47e5224f
commit
2386e5f343
9
zsh/.zsh/configs/navigation.zsh
Normal file
9
zsh/.zsh/configs/navigation.zsh
Normal file
|
@ -0,0 +1,9 @@
|
|||
bindkey -s "^f" "tmux-sessioniser\n"
|
||||
|
||||
# Search through history with the up and down arrows.
|
||||
autoload -U up-line-or-beginning-search
|
||||
autoload -U down-line-or-beginning-search
|
||||
zle -N up-line-or-beginning-search
|
||||
zle -N down-line-or-beginning-search
|
||||
bindkey "${terminfo[kcuu1]}" up-line-or-beginning-search # Up
|
||||
bindkey "${terminfo[kcud1]}" up-line-or-beginning-search # Down
|
|
@ -33,7 +33,5 @@ _load_settings() {
|
|||
|
||||
_load_settings "$HOME/.zsh/configs"
|
||||
|
||||
bindkey -s "^f" "tmux-sessioniser\n"
|
||||
|
||||
# Local config
|
||||
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local
|
||||
|
|
Loading…
Reference in a new issue