aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-09 23:27:10 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-09 23:27:10 +0530
commit877f7b4d624b2fc73ec3fcb0f2bea511a582e78c (patch)
tree231b4db5461476936448cddeeab69ad97ceb4fd9
parentb14e1a4856145c1414267bcedb1b91618e2f7c06 (diff)
downloadnnn-877f7b4d624b2fc73ec3fcb0f2bea511a582e78c.tar.gz
Exit if dir is unchanged
-rwxr-xr-xplugins/fzcd2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/fzcd b/plugins/fzcd
index 88f5397..9e93969 100755
--- a/plugins/fzcd
+++ b/plugins/fzcd
@@ -26,6 +26,8 @@ fi
if [ -n "$sel" ]; then
if ! [ -d "$sel" ]; then
sel=$(dirname "$sel")
+ elif [ "$sel" = "." ]; then
+ exit 0
fi
# Remove "./" prefix if it exists