comparison zshrc @ 83:dd76ef1174f1

Add q as fzf - z mashup
author zegervdv <zegervdv@me.com>
date Wed, 30 Jul 2014 19:12:19 +0200
parents 16edf05ad21a
children 3a37086414bd
comparison
equal deleted inserted replaced
82:5fd16ed8bb6d 83:dd76ef1174f1
86 86
87 compctl -g '~/.teamocil/*(:t:r)' teamocil 87 compctl -g '~/.teamocil/*(:t:r)' teamocil
88 88
89 [[ -f ~/.zshrc.local ]] && source ~/.zshrc.local 89 [[ -f ~/.zshrc.local ]] && source ~/.zshrc.local
90 90
91 bindkey '\e[A' history-beginning-search-backward
92 bindkey '\e[B' history-beginning-search-forward
93
91 source ~/.fzf.zsh 94 source ~/.fzf.zsh
95 q() {
96 if [[ -z "$*" ]]; then
97 cd "$(_z -l 2>&1 | sed -n 's/^[ 0-9.,]*//p' | fzf)"
98 else
99 _z "$@"
100 fi
101 }