aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/fzcd
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/fzcd')
-rwxr-xr-xplugins/fzcd14
1 files changed, 2 insertions, 12 deletions
diff --git a/plugins/fzcd b/plugins/fzcd
index 5e0b5f0..1925d77 100755
--- a/plugins/fzcd
+++ b/plugins/fzcd
@@ -1,23 +1,13 @@
#!/usr/bin/env sh
-# Description: Run fzf/fzy, fd/fdfind/find and go to the directory of the file selected
+# Description: Run fzf and go to the directory of the file selected
#
# Shell: POSIX compliant
# Author: Anna Arad
. "$(dirname "$0")"/.nnn-plugin-helper
-if [ "$(cmd_exists fzy)" -eq "0" ]; then
- if [ "$(cmd_exists fd)" -eq "0" ]; then
- fd=fd
- elif [ "$(cmd_exists fdfind)" -eq "0" ]; then
- fd=fdfind
- else
- fd=find
- fi
-
- sel=$($fd | fzy)
-elif [ "$(cmd_exists fzf)" -eq "0" ]; then
+if [ "$(cmd_exists fzf)" -eq "0" ]; then
sel=$(fzf)
else
exit 1