Remove -d check during cd

This commit is contained in:
Ajeet D'Souza 2020-12-12 01:37:44 +05:30
parent 14b150c1f7
commit 18121e07f9
1 changed files with 1 additions and 1 deletions

View File

@ -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