Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 02c01c8 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:README.md+2 added-1 removed
148 unmodified lines
149# - Bypass fuzzy finder if there's only one match (--select-1)150# - Exit if there's no match (--exit-0)151fe() {152 local file153 file=$(fzf --query="$1" --select-1 --exit-0) && ${EDITOR:-vim} "$file"153 file=$(fzf --query="$1" --select-1 --exit-0)154 [ -n "$file" ] && ${EDITOR:-vim} "$file"155}156157# fd - cd to selected directory158fd() {
280 unmodified lines