diff options
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zshrc | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -25,3 +25,13 @@ PROMPT='%0~ $ ' # Options unsetopt histverify + +# Use fzf with z +unalias z 2> /dev/null +z() { + [ $# -gt 0 ] && _z "$*" && return + cd "$(_z -l 2>&1 | fzf --height 40% --reverse --inline-info +s --tac --query "$*" | sed 's/^[0-9,.]* *//')" + zle && zle reset-prompt +} +zle -N z +bindkey '^z' z |