mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-20 01:23:43 -05:00
Revert 426e5a3^...426e5a3 on Examples
@@ -663,12 +663,11 @@ Fish like interactive tab completion for cd in zsh.
|
|||||||
like normal z when used with arguments but displays an fzf prompt when used without.
|
like normal z when used with arguments but displays an fzf prompt when used without.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
unalias ${_Z_CMD:-z} 2>/dev/null
|
unalias z 2> /dev/null
|
||||||
function ${_Z_CMD:-z} {
|
z() {
|
||||||
[[ $# -gt 0 ]] && _z $* && return
|
[ $# -gt 0 ] && _z "$*" && return
|
||||||
cd "$(_z -l 2>&1 | sed 's/^[^ ]* *//' | fzf --height 40% --reverse --inline-info +s --tac --query "${*##-* }")"
|
cd "$(_z -l 2>&1 | fzf --height 40% --reverse --inline-info +s --tac --query "$*" | sed 's/^[0-9,.]* *//')"
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Here is another version that also supports relaunching z with the arguments
|
Here is another version that also supports relaunching z with the arguments
|
||||||
|
|||||||
Reference in New Issue
Block a user