X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=ece0a2d67bacbf5fcbaa254578c8dfc9de4fa2ae;hb=a60026feb10e26fe211e62ca19787130a8b3b932;hp=f8adacf317b64b7cde56d1c258c74e47a93dcf2c;hpb=861dc978760ca60aced1dc14dea0ac72c01f002b;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index f8adacf..ece0a2d 100644 --- a/zsh/rc +++ b/zsh/rc @@ -187,8 +187,10 @@ bindkey -a '^N' history-beginning-search-forward bindkey '^R' history-incremental-search-backward # Also enable my usual use of Ctrl-P/Ctrl-N to get the previous/next matching # history entry. -bindkey -M isearch '^P' history-incremental-search-backward -bindkey -M isearch '^N' history-incremental-search-forward +if [[ $ZSH_VERSION == (4.<4->*|<5->*) ]]; then + bindkey -M isearch '^P' history-incremental-search-backward + bindkey -M isearch '^N' history-incremental-search-forward +fi # Automatically push cd-ed directories on the directory stack. setopt autopushd @@ -732,6 +734,12 @@ zle -C complete-files complete-word _generic zstyle ':completion:complete-files:*' completer _files bindkey '^F' complete-files +# Completion for my wrapper scripts +compdef slocate=locate +compdef srsync=rsync +compdef srsync-incremental=rsync +compdef svalgrind=valgrind + # CUSTOM ALIASES AND FUNCTIONS