From 18121e07f972a8f33cfe36d76dc7097880a68dc3 Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Sat, 12 Dec 2020 01:37:44 +0530 Subject: [PATCH] Remove -d check during cd --- templates/zsh.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/zsh.txt b/templates/zsh.txt index 97c5d76..538f06a 100644 --- a/templates/zsh.txt +++ b/templates/zsh.txt @@ -59,7 +59,7 @@ function __zoxide_z() { echo "zoxide: \\$OLDPWD is not set" return 1 fi - elif [ "$#" -eq 1 ] && [ -d "$1" ]; then + elif [ "$#" -eq 1 ] && cd "$1" &>{{ Opts::DEVNULL }}; then __zoxide_cd "$1" else local __zoxide_result