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

View File

@@ -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 ###

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
# ======================