Created
August 3, 2022 02:42
-
-
Save butsugiri/8b56bc94122a720d1c9c7f47277ccbc6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zz() { | |
[ $# -gt 0 ] && z "$*" && return | |
cd "$(z -l 2>&1 | fzf --height 40% --nth 2.. --reverse --inline-info +s --tac --query "${*##-* }" | sed 's/^[0-9,.]* *//')" | |
} | |
zz-accept() { | |
zz | |
zle accept-line | |
} | |
zle -N zz-accept | |
bindkey '\el' zz-accept |
Author
butsugiri
commented
Aug 3, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment