Add new keybindings

This commit is contained in:
Asocia 2021-05-15 13:21:18 +03:00
parent 187aa0cc31
commit 53556f12b2

6
.zshrc
View File

@ -54,7 +54,7 @@ HIST_STAMPS="mm/dd/yyyy"
# plugins=() # plugins=()
plugins=( plugins=(
zsh-autosuggestions python pip last-working-dir history sudo command-not-found git extract zsh-syntax-highlighting docker docker-compose zsh-vi-mode z.lua zsh-autosuggestions python pip last-working-dir dirhistory history sudo command-not-found git extract zsh-syntax-highlighting docker docker-compose zsh-vi-mode z.lua
) )
plugins+=(zsh-prompt-benchmark) plugins+=(zsh-prompt-benchmark)
@ -99,6 +99,10 @@ function my_bindings() {
bindkey '^f' forward-word bindkey '^f' forward-word
bindkey '^g' autosuggest-accept bindkey '^g' autosuggest-accept
bindkey "\e\e" sudo-command-line bindkey "\e\e" sudo-command-line
bindkey "\e[1;3D" dirhistory_zle_dirhistory_back
bindkey "\e[1;3C" dirhistory_zle_dirhistory_future
bindkey "\e[1;3A" dirhistory_zle_dirhistory_up
bindkey "\e[1;3B" dirhistory_zle_dirhistory_down
} }