Ask DN: Which shell do you use, and why?

almost 6 years ago

I can't decide whether I should go with Bash or zsh. I've been using oh-my-zsh for some time, and it's fine. I'm a big fan of the autocompletion. However Bash is the default in most systems, and I found this nice collection of dotfiles: https://github.com/mathiasbynens/dotfiles


  • Mike KrukMike Kruk, almost 6 years ago (edited almost 6 years ago )

    Using zsh with Antigen for managing plugins.

    Been meaning to try fish shell recently, but haven't gotten around to it yet.

    I've found that the argument for using a particular shell because it is the "default" on servers etc, doesn't really hold. Most people who are using the command line also have a laundry list of shortcuts, aliases and functions that help them do things. Without your exact setup when jumping on a server, it doesn't really matter anymore which shell you are using.

    P.S. The best zsh theme EVER: https://github.com/sindresorhus/pure

    4 points
    • Account deleted almost 6 years ago

      Thank you so much for the reply! I've never heard of Antigen, but it seems very promising! I'll try it out tonight. I also like the look of pure!

      0 points
    • Iheanyi Ekechukwu, almost 6 years ago

      +1 for ZSH, though I haven't tried Antigen, I'll check it out. And also, that Pure theme looks bloody sexy, I'm gonna give it a whirl. Thanks!

      0 points
  • Dominik SchmidtDominik Schmidt, almost 6 years ago

    oh-my-zsh. don't know why :D

    3 points
  • Jon GoldJon Gold, almost 6 years ago

    I use zsh, pretty much vanilla. I used to use oh-my-zsh but I found it confusing - at the time I was super new to the command line and there was so much going on I had no idea what was affecting it, what I could change etc etc.

    I want to check out fish but I haven't had a chance - tried it for a morning but it broke my tmux & vim colors and I had to keep working so I went back to zsh.

    1 point
    • Account deleted almost 6 years ago

      That's how I feel right now!! I'm not sure what's going on, and I'm not using all the features anyway. I think I'll do the same as you, and drop oh-my-zsh and start using zsh but with a few of my own settings.

      0 points
  • Patrick SmithPatrick Smith, almost 6 years ago (edited almost 6 years ago )

    I’m not the biggest pro at the Terminal, I use fish. It’s meant to be more accessible, but I admit I’ve found it tricky at times. Sometimes I’ve had issue following steps for a command online, as instead of && you have to do a ; and which is pretty odd. I never really mastered the |&> /dev/null &wtfamiwriting1 commands that you need for some tasks, so some of the concepts or syntax in the Terminal I find quite confusing, and having a doubly exotic shell doesn’t help.

    My favourite feature of fish is the right key for autocompletion. As you type, it shows a faded suggestion based on previous commands, and you just press the right key to fill the command out. I use it all the time and it’s why I’ve stuck with it as it’s a massive time saver.

    It seems like it may have a better version of the command autocompletion that zsh has as far as I can tell, where instead of relying on autocompletion results having to be shipped, it parses the man pages to work them all out automatically. Maybe others shells have this too, but it seems pretty nifty for a command line tool.

    0 points
  • Clark WimberlyClark Wimberly, almost 6 years ago

    Been using iTerm for a while now, loving it: http://www.iterm2.com/

    I'm a lightweight, so I like the simple things like tabs, autocomplete, and better color support.

    0 points
  • Ray BriglebRay Brigleb, almost 6 years ago

    Zsh with Oh-My-Zsh. The tab-completion is amazing. If I have one file I need to add, I just hit Tab a couple of times and it figures it out. I've never worked with a shell that smart!

    0 points