Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why it does not work ? #27

Open
oxfordyang2016 opened this issue Feb 15, 2016 · 3 comments
Open

why it does not work ? #27

oxfordyang2016 opened this issue Feb 15, 2016 · 3 comments

Comments

@oxfordyang2016
Copy link

image

@vigneshwaranr
Copy link
Owner

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.

@ctappy
Copy link

ctappy commented Apr 17, 2017

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

@Flurrywinde
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants