diff options
| author | 2020-05-06 18:41:01 +0530 | |
|---|---|---|
| committer | 2020-05-06 18:41:01 +0530 | |
| commit | 4832fc5fe1297f1241310f2453b850c72743e1bd (patch) | |
| tree | 47c27a2f7309e9b1a5874df55635e383e667ac71 /plugins/fzcd | |
| parent | c8ecf06c515054595ac1dfa34989a3a7d26373ce (diff) | |
| download | nnn-4832fc5fe1297f1241310f2453b850c72743e1bd.tar.gz | |
Drop fzy support
Diffstat (limited to 'plugins/fzcd')
| -rwxr-xr-x | plugins/fzcd | 14 |
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 |