mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-20 09:33:42 -05:00
Updated examples (markdown)
@@ -146,6 +146,7 @@ Integration with [z](https://github.com/rupa/z), like normal z when used with
|
||||
arguments but displays an fzf prompt when used without.
|
||||
|
||||
```sh
|
||||
unalias z
|
||||
z() {
|
||||
if [[ -z "$*" ]]; then
|
||||
cd "$(_z -l 2>&1 | sed -n 's/^[ 0-9.,]*//p' | fzf)"
|
||||
@@ -159,6 +160,7 @@ Here is another version that also supports relaunching z with the arguments
|
||||
for the previous command as the default input by using zz
|
||||
|
||||
```sh
|
||||
unalias z
|
||||
z() {
|
||||
if [[ -z "$*" ]]; then
|
||||
cd "$(_z -l 2>&1 | sed -n 's/^[ 0-9.,]*//p' | fzf)"
|
||||
|
||||
Reference in New Issue
Block a user