diff --git a/examples.md b/examples.md index 59ef00f..527c9d2 100644 --- a/examples.md +++ b/examples.md @@ -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)"