From 4832fc5fe1297f1241310f2453b850c72743e1bd Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Wed, 6 May 2020 18:41:01 +0530 Subject: Drop fzy support --- plugins/fzcd | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'plugins/fzcd') 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 -- cgit v1.2.3-70-g09d2