remove directory check
just skip the first argument and pass the rest as is. checking for directory breaks cd'ing to symlinked directories
This commit is contained in:
parent
b50ee1d9ea
commit
9c69a81354
|
|
@ -102,7 +102,7 @@ function __zoxide_zi() {
|
|||
|
||||
\builtin unalias {{cmd}} &>/dev/null || \builtin true
|
||||
function {{cmd}}() {
|
||||
if [[ $# -eq 2 && "$1" == "--" && -d $2 ]]; then
|
||||
if [[ $# -eq 2 && "$1" == "--" ]]; then
|
||||
# This is how cd is called when bash's autocd option is set. To get the
|
||||
# directory-changing behavior first argument must be skipped.
|
||||
__zoxide_z "${@:2}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue