commit 877f7b4d624b2fc73ec3fcb0f2bea511a582e78c parent b14e1a4856145c1414267bcedb1b91618e2f7c06 Author: Arun Prakash Jana <engineerarun@gmail.com> Date: Mon, 9 Dec 2019 23:27:10 +0530 Exit if dir is unchanged Diffstat:
| M | plugins/fzcd | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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