various rather experimental changes

This commit is contained in:
atlantispc_sheppy
2017-05-26 04:42:13 +02:00
parent 73fe0dff85
commit ec68c019b6
2 changed files with 21 additions and 3 deletions

20
zshrc
View File

@@ -55,7 +55,7 @@ setopt nolistambiguous # sofort alle Möglichkeiten anzeigen
setopt completeinword # in Wörtern completen, braucht der _prefix completer
### GENERAL ###
bindkey '^R' history-incremental-pattern-search-backward
#bindkey '^R' history-incremental-pattern-search-backward
zmodload zsh/complist #bessere listen
autoload -Uz compinit; compinit #completioni
@@ -226,3 +226,21 @@ alias udev_reload="udevadm control --reload-rules && udevadm trigger" #reload al
if [[ $HOST =~ faui* ]]; then
mesg n
fi
### Experimental ###
alias hs='eval $(cat .config/zshhistory.log | peco)'
alias cfind='print -z $(cat .config/zshhistory.log | peco)'
hhs(){print -z $(cat .config/zshhistory.log | peco)}
zle -N hhstest hhs
bindkey ^R hhstest
source ~/.config/other/zsh-history-substring-search.zsh
bindkey '^[[5~' history-substring-search-up
bindkey '^[[6~' history-substring-search-down
# === cool-peco init ===
FPATH="$FPATH:/home/sheppy/reps/cool-peco"
autoload -Uz cool-peco
cool-peco
#bindkey '^R' cool-peco-history
# ======================