Update fe example as the exit status from -0 has changed (#36)
This commit is contained in:
1 parent
02c01c81a0
commit
16682a3f92
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user