Minor change to syntax

This commit is contained in:
Martin Chen 2026-04-22 15:27:12 +10:00
parent cad4eb63d3
commit 5557548029
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ __zoxide_z() {
\command printf 'zoxide: $OLDPWD is not set'
return 1
fi
elif [ "$#" -eq 1 ] && [ "$1" = '.' -o "$1" = '..' ]; then
elif [ "$#" -eq 1 ] && { [ "$1" = '.' ] || [ "$1" = '..' ]; }; then
__zoxide_cd "$1"
elif [ "$#" -eq 1 ] && [ -d "$1" ]; then
__zoxide_cd "$1"