Skip to content

Commit

Permalink
Update fe example as the exit status from -0 has changed (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Apr 2, 2014
1 parent 02c01c8 commit 16682a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16682a3

Please sign in to comment.