bd icon indicating copy to clipboard operation
bd copied to clipboard

why it does not work ?

Open oxfordyang2016 opened this issue 9 years ago • 3 comments

image

oxfordyang2016 avatar Feb 15 '16 06:02 oxfordyang2016

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.

vigneshwaranr avatar Feb 20 '16 13:02 vigneshwaranr

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

ctappy avatar Apr 17 '17 13:04 ctappy

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.

Flurrywinde avatar Apr 17 '17 17:04 Flurrywinde