Coder Social home page Coder Social logo

why it does not work ? about bd HOT 3 OPEN

oxfordyang2016 avatar oxfordyang2016 commented on August 22, 2024
why it does not work ?

from bd.

Comments (3)

vigneshwaranr avatar vigneshwaranr commented on August 22, 2024

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.

from bd.

ctappy avatar ctappy commented on August 22, 2024

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

from bd.

Flurrywinde avatar Flurrywinde commented on August 22, 2024

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.

from bd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.