mirror of
https://github.com/junegunn/fzf.git
synced 2025-09-01 04:43:49 -07:00
Update fe example as the exit status from -0 has changed (#36)
This commit is contained in:
@@ -150,7 +150,8 @@ Useful examples
|
|||||||
# - Exit if there's no match (--exit-0)
|
# - Exit if there's no match (--exit-0)
|
||||||
fe() {
|
fe() {
|
||||||
local file
|
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
|
# fd - cd to selected directory
|
||||||
|
Reference in New Issue
Block a user