mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 12:15:29 +00:00
chore(zsh): rename fzf z function instead of overwriting the original command
This commit is contained in:
3
zshrc
3
zshrc
@@ -326,8 +326,7 @@ fshow() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Search z history with fzf
|
# Search z history with fzf
|
||||||
unalias z 2> /dev/null
|
fz() {
|
||||||
z() {
|
|
||||||
[ $# -gt 0 ] && _z "$*" && return
|
[ $# -gt 0 ] && _z "$*" && return
|
||||||
cd "$(_z -l 2>&1 | fzf --height 40% --nth 2.. --reverse --inline-info +s --tac --query "${*##-* }" | sed 's/^[0-9,.]* *//')"
|
cd "$(_z -l 2>&1 | fzf --height 40% --nth 2.. --reverse --inline-info +s --tac --query "${*##-* }" | sed 's/^[0-9,.]* *//')"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user