From 877f7b4d624b2fc73ec3fcb0f2bea511a582e78c Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 9 Dec 2019 23:27:10 +0530 Subject: [PATCH] Exit if dir is unchanged --- plugins/fzcd | 2 ++ 1 file changed, 2 insertions(+) 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