From ec68c019b6770567140ebe2a96447af66e854bff Mon Sep 17 00:00:00 2001 From: atlantispc_sheppy Date: Fri, 26 May 2017 04:42:13 +0200 Subject: [PATCH] various rather experimental changes --- herbstluftwm/autostart | 4 ++-- zshrc | 20 +++++++++++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index 2155a84..4b05fe2 100755 --- a/herbstluftwm/autostart +++ b/herbstluftwm/autostart @@ -24,9 +24,9 @@ Mod=Mod4 # Use the super key as the main modifier ### Atlantis PC-specific setup ### if [[ "$HOST" == "atlantispc" ]]; then /usr/bin/xrandr --output DVI-D-1 --left-of HDMI-1 - hc detect_monitors + #hc detect_monitors hc set swap_monitors_to_get_tag 0 - #hc set_monitors 3840x1080+0+0 + hc set_monitors 3840x1080+0+0 xautolock -time 15 -locker /home/ik15ydit/.config/i3lock/piclock.sh & fi ### Atlantislaptop specific setup ### diff --git a/zshrc b/zshrc index 17be92d..b6b2228 100644 --- a/zshrc +++ b/zshrc @@ -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 +# ======================