Update fe example as the exit status from -0 has changed (#36)

This commit is contained in:
Junegunn Choi 2014-04-03 01:20:22 +09:00
parent 02c01c81a0
commit 16682a3f92

View File

@ -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