diff options
Diffstat (limited to 'bash/bashrc.d/cd.bash')
-rw-r--r-- | bash/bashrc.d/cd.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/cd.bash b/bash/bashrc.d/cd.bash index 1813a9da..282e1649 100644 --- a/bash/bashrc.d/cd.bash +++ b/bash/bashrc.d/cd.bash @@ -7,7 +7,7 @@ __cd() { done shift $(($OPTIND-1)) if (($# == 2)); then - if [[ "$PWD" == *"$1"* ]]; then + if [[ $PWD == *$1* ]]; then builtin cd "${opts[@]}" "${PWD/$1/$2}" else printf "bash: cd: could not replace substring\n" >&2 |