diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2014-04-03 01:20:22 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2014-04-03 01:20:22 +0900 |
commit | 16682a3f92e9e5764fcf6e493f19dffbb3d9c507 (patch) | |
tree | 5c2a07eea3d08a27eeeb3d76a15602d509686d31 /README.md | |
parent | 02c01c81a092622ebdbe2366b419919c75c1ba0e (diff) |
Update fe example as the exit status from -0 has changed (#36)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |