From 5b7448bac9506830c72da860f6e44cdbec5a6344 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Wed, 20 Nov 2019 18:47:26 +0530 Subject: Various plugin fixes 1. getplugs should work even if nnn is not run 2. Remove redundant ./ prefix 3. Update plugin docs --- plugins/fzcd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/fzcd') 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 -- cgit v1.2.3-70-g09d2