diff --git a/templates/bash.txt b/templates/bash.txt index aeec524..368d3f6 100644 --- a/templates/bash.txt +++ b/templates/bash.txt @@ -75,6 +75,8 @@ function __zoxide_z() { __zoxide_cd "${OLDPWD}" elif [[ $# -eq 1 && -d $1 ]]; then __zoxide_cd "$1" + elif [[ $# -eq 2 && $1 == '--' ]]; then + __zoxide_cd "$2" elif [[ ${@: -1} == "${__zoxide_z_prefix}"?* ]]; then # shellcheck disable=SC2124 \builtin local result="${@: -1}"