file-scripts/lib/fzf.sh

8 lines
111 B
Bash

## FZF helpers
FZF_OPTS=('--select-1' '--exit-0')
run_fzf() {
fzf "${FZF_OPTS[@]}" -- <<<"$@" || return 2
}