mirror of
https://github.com/jarun/nnn.git
synced 2024-11-27 21:31:30 +00:00
Disable shellcheck warning SC2086
This commit is contained in:
parent
819bddaac9
commit
9d336b77fa
|
@ -19,16 +19,15 @@
|
||||||
# Shell: POSIX compliant
|
# Shell: POSIX compliant
|
||||||
# Author: Arun Prakash Jana
|
# Author: Arun Prakash Jana
|
||||||
|
|
||||||
# shellcheck disable=SC2012
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
|
|
||||||
IFS=':'
|
IFS=':'
|
||||||
|
|
||||||
get_selection() {
|
get_selection() {
|
||||||
if which fzf >/dev/null 2>&1; then
|
if which fzf >/dev/null 2>&1; then
|
||||||
ls -H $PATH | sort | fzf
|
{ IFS=:; ls -H $PATH; } | sort | fzy
|
||||||
elif which fzy >/dev/null 2>&1; then
|
elif which fzy >/dev/null 2>&1; then
|
||||||
ls -H $PATH | sort | fzy
|
{ IFS=:; ls -H $PATH; } | sort | fzy
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue