We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db14bdc commit 6324b4eCopy full SHA for 6324b4e
templates/zsh.txt
@@ -84,7 +84,7 @@ function __zoxide_z() {
84
__zoxide_doctor
85
if [[ "$#" -eq 0 ]]; then
86
__zoxide_cd ~
87
- elif [[ "$#" -eq 1 ]] && { [[ -d "$1" ]] || [[ "$1" = '-' ]] || [[ "$1" =~ ^[-+][0-9]$ ]]; }; then
+ elif [[ "$#" -eq 1 ]] && { [[ -d "$1" ]] || [[ "$1" = '-' ]] || [[ "$1" =~ ^[-+][0-9]+$ ]]; }; then
88
__zoxide_cd "$1"
89
elif [[ "$#" -eq 2 ]] && [[ "$1" = "--" ]]; then
90
__zoxide_cd "$2"
0 commit comments