mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-10 18:24:39 +00:00
Update fe example as the exit status from -0 has changed (#36)
This commit is contained in:
parent
02c01c81a0
commit
16682a3f92
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user