atuin: Set up configuration
This commit is contained in:
parent
22af0cf46e
commit
71c5ac3f19
3 changed files with 78 additions and 83 deletions
|
|
@ -25,7 +25,6 @@ if command -v zr >/dev/null 2>&1; then
|
|||
molovo/tipz \
|
||||
ael-code/zsh-colored-man-pages \
|
||||
MichaelAquilina/zsh-auto-notify \
|
||||
junegunn/fzf.git/shell/key-bindings.zsh \
|
||||
Aloxaf/fzf-tab \
|
||||
zdharma-continuum/fast-syntax-highlighting \
|
||||
zsh-users/zsh-autosuggestions \
|
||||
|
|
@ -35,7 +34,6 @@ if command -v zr >/dev/null 2>&1; then
|
|||
else # or manually
|
||||
[ -e /usr/share/oh-my-zsh/plugins/colored-man-pages/colored-man-pages.plugin.zsh ] && source /usr/share/oh-my-zsh/plugins/colored-man-pages/colored-man-pages.plugin.zsh
|
||||
[ -e /usr/share/oh-my-zsh/plugins/command-not-found/command-not-found.plugin.zsh ] && source /usr/share/oh-my-zsh/plugins/command-not-found/command-not-found.plugin.zsh
|
||||
[ -e /usr/share/fzf/key-bindings.zsh ] && source /usr/share/fzf/key-bindings.zsh
|
||||
## find the correct installed tab-completion version
|
||||
PLUG_FOLDER="/usr/share/zsh/plugins"
|
||||
[ -e $PLUG_FOLDER/fzf-tab/fzf-tab.plugin.zsh ] && source $PLUG_FOLDER/fzf-tab/fzf-tab.plugin.zsh
|
||||
|
|
@ -223,6 +221,9 @@ bindkey '^N' history-beginning-search-forward
|
|||
|
||||
# search history backwards <c-r>
|
||||
bindkey '^o' history-incremental-search-backward
|
||||
bindkey -M vicmd '^o' history-incremental-search-backward
|
||||
bindkey '^r' atuin-search-viins
|
||||
bindkey -M vicmd '^r' atuin-search-vicmd
|
||||
# cycle through history results
|
||||
bindkey -M isearch '^P' history-incremental-search-backward
|
||||
bindkey -M isearch '^N' history-incremental-search-forward
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue