diff options
author | 2019-12-09 23:27:10 +0530 | |
---|---|---|
committer | 2019-12-09 23:27:10 +0530 | |
commit | 877f7b4d624b2fc73ec3fcb0f2bea511a582e78c (patch) | |
tree | 231b4db5461476936448cddeeab69ad97ceb4fd9 | |
parent | b14e1a4856145c1414267bcedb1b91618e2f7c06 (diff) | |
download | nnn-877f7b4d624b2fc73ec3fcb0f2bea511a582e78c.tar.gz |
Exit if dir is unchanged
-rwxr-xr-x | plugins/fzcd | 2 |
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 |