Remove script dependency on fzf.sh library file

This commit is contained in:
Eric Torres
2022-10-01 12:36:18 -07:00
parent a8972362fc
commit 7eda5e8c93
3 changed files with 2 additions and 9 deletions

View File

@ -121,7 +121,7 @@ elif [[ -n $NO_IGNORE_VCS ]]; then
fi
files="$(find_files $DIR "${extra_opts[@]}")"
selected_file="$(run_fzf "$files")"
selected_file="$(fzf --select-1 --exit-0 <<< "$files")"
if [[ -w "${selected_file}" ]]; then
"$EDITOR" "$selected_file"