smartcd
smartcd copied to clipboard
Problems when autostash alias override existing .bashrc defined alias
Place the following in your .bashrc:
alias hello='echo "hello world"'
Then setup an enter script for any directory containing the following:
autostash alias hello='echo "hello gophers"'
Then cd into that directory, you will see the following error:
$ cd -
/home/myitcv/blah
smartcd: running /home/myitcv/.smartcd/scripts/home/myitcv/blah/bash_enter
Command 'world'' not found, did you mean:
command 'world' from snap world (4.0)
See 'snap info <snapname>' for additional versions.