diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-11-20 18:47:26 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-11-20 19:19:09 +0530 |
commit | 5b7448bac9506830c72da860f6e44cdbec5a6344 (patch) | |
tree | ea5f7de6f737b1197e7ff50056abbac91ba4e012 /plugins/fzcd | |
parent | cc3702b2e129e92eb8082a306ad3a79acc908450 (diff) | |
download | nnn-5b7448bac9506830c72da860f6e44cdbec5a6344.tar.gz |
Various plugin fixes
1. getplugs should work even if nnn is not run
2. Remove redundant ./ prefix
3. Update plugin docs
Diffstat (limited to 'plugins/fzcd')
-rwxr-xr-x | plugins/fzcd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/fzcd b/plugins/fzcd index a75d558..c4694e3 100755 --- a/plugins/fzcd +++ b/plugins/fzcd @@ -28,5 +28,8 @@ if [ "$?" -eq "0" ]; then *directory*) ;; *) sel=$(dirname "$sel") ;; esac + + # Remove "./" prefix + sel="$(echo "$sel" | cut -c 3-)" nnn_cd "$PWD/$sel" fi |