Giter Club home page Giter Club logo

Comments (4)

Tarrasch avatar Tarrasch commented on August 22, 2024 1

Nice comparison @extremepayne. But I think I don't agree on the "cd has a behaviour when passed no arguments" point:

  • First, cd is much more known and used, most people who've installed bd have probably forgotten they even have it.
  • Second, how do we know the cd authors are happy with that choice or if they keep it that way for backward compatibility?

But, I think it makes sense for you to fork this and make the minor change. You have my blessings. :)

from zsh-bd.

Tarrasch avatar Tarrasch commented on August 22, 2024

Not sure I like that idea. It would not be able to print a usage then right? Why not make your own alias alias up='cd ..'?

from zsh-bd.

extremepayne avatar extremepayne commented on August 22, 2024

Right, since you can have a directory named -h it's impossible to implement a help flag. So I see why you're hesitant to implement this. But I feel like the two usages are so easy that they should be self-explanatory. Generally, I feel like a help page isn't super necessary unless you have flags or options.

Justification:

plain cd is equivalent to cd ~. cd has no help accessible from the command line. This feels rather analogous to bd being equivalent to bd 1. It's supposed to save me time, which it does often, but when I'm only moving up one dir I feel like the 1 character difference between bd 1 and cd .. isn't worth the retraining my fingers.

But this is your project, and if you don't feel comfortable with removing the usage, that's okay. I can just fork it, implement it myself, and move on.

from zsh-bd.

mawkler avatar mawkler commented on August 22, 2024

Ok, thanks! I made my own fork now so to anyone who also wants this behaviour my fork is over at Melkster/zsh-bd.

from zsh-bd.

Related Issues (10)

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.