From 5a7a99aae483922d6aa79791b133d0ce906fe6cc Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 2 Aug 2014 01:32:52 -0700 Subject: [PATCH] Updated examples (markdown) --- examples.md | 2 ++ 1 file changed, 2 insertions(+) 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)"