From 5557548029e16952b0796651ffc8e8adf1503186 Mon Sep 17 00:00:00 2001 From: Martin Chen Date: Wed, 22 Apr 2026 15:27:12 +1000 Subject: [PATCH] Minor change to syntax --- templates/posix.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/posix.txt b/templates/posix.txt index 3da30db..5a3ba5b 100644 --- a/templates/posix.txt +++ b/templates/posix.txt @@ -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"