From 16682a3f92e9e5764fcf6e493f19dffbb3d9c507 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 3 Apr 2014 01:20:22 +0900 Subject: [PATCH] Update fe example as the exit status from -0 has changed (#36) --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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