summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2014-04-03 01:20:22 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2014-04-03 01:20:22 +0900
commit16682a3f92e9e5764fcf6e493f19dffbb3d9c507 (patch)
tree5c2a07eea3d08a27eeeb3d76a15602d509686d31 /README.md
parent02c01c81a092622ebdbe2366b419919c75c1ba0e (diff)
Update fe example as the exit status from -0 has changed (#36)
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index d9ad3990..29223a99 100644
--- a/README.md
+++ b/README.md
@@ -150,7 +150,8 @@ Useful examples
# - Exit if there's no match (--exit-0)
fe() {
local file
- file=$(fzf --query="$1" --select-1 --exit-0) && ${EDITOR:-vim} "$file"
+ file=$(fzf --query="$1" --select-1 --exit-0)
+ [ -n "$file" ] && ${EDITOR:-vim} "$file"
}
# fd - cd to selected directory