bd
bd copied to clipboard
why it does not work ?
What OS are you on? Is that really bash terminal?
You should only add one alias. There is a space before alias in echo ' alias bd=..
Please remove that space.
also look into your basrc file manually with a text editor to see if it actually worked. sometimes when you copy and paste double quotes it does not transfer as it should
I experienced similar behavior after I first installed (using the procedure described in the readme). bd
was simply not changing directories whether I typed part of the parent directory's name or the full thing. Ah, I just realized what happened. I failed to source
my .bashrc, and the reason it didn't work for oxfordyang is that the alias must not have gotten into his .bashrc correctly. Thus, in both our cases, bd
ran as a child process which doesn't change the directory in the current shell, only the child shell that is killed right away and never seen.
I suggest putting bd somewhere other than a directory in $PATH. No need for it to be there, since if it's ever run from there, this exact problem will happen. Already oxfordyang and I screwed up and encountered it. Put it somewhere else so that the only time it can ever be run is via the alias.