I personally use ZSH with Prezto, which makes it considerably better than vanilla ZSH. I've tried Nushell and it seems to work quite fine but it's really a different paradigm that makes you think of the data differently than *sh shells.
How does it compare to oh my zsh?
Ask HN: Are alternative (oil, nu, etc.) shells usable as daily drivers?
31–40 of 146 posts
Re: Ask HN: Are alternative (oil, nu, etc.) shells usable as daily drivers?
#32Starship [0] and fzf [1] will make your life much easier in any shell.
I use fish but they work with bash, zsh and the like.
Re: Ask HN: Are alternative (oil, nu, etc.) shells usable as daily drivers?
#33I personally use ZSH with Prezto, which makes it considerably better than vanilla ZSH. I've tried Nushell and it seems to work quite fine but it's really a different paradigm that makes you think of the data differently than *sh shells.
How does it compare to oh my zsh?
Re: Ask HN: Are alternative (oil, nu, etc.) shells usable as daily drivers?
#34Earlier quoted context omitted.
I use fish too. My favourite feature is typing part of a command and using up and down arrows to cycle through the results, as opposed to ctrl+R and...I don't remember which one. Functions are easy to define too.
You can easily get bash to do that by adding these lines to your .inputrc file. "\e[A": history-search-backward "\e[B": history-search-forward "\e[C": forward-char "\e[D": backward-char
I just checked and the only things I have configured are `set fish_greeting` (i.e. empty) and some paths...
Edit: Also, I don't know how, but the fish completion is magic. It seems to remember which commands I use often in which folders and in which order. I'm not sure if that's how it's implemented. Sure feels that way though.
Re: Ask HN: Are alternative (oil, nu, etc.) shells usable as daily drivers?
#35Re: Ask HN: Are alternative (oil, nu, etc.) shells usable as daily drivers?
#36A few here said they don't use Fish or another shell due to compatibility issues, but I wonder what the problem is: If I want to use a script written for another (POSIX) shell, it most likely has a shebang (or I can add it), so it will get properly executed using that other shell…
Re: Ask HN: Are alternative (oil, nu, etc.) shells usable as daily drivers?
#37Earlier quoted context omitted.
I use fish too. My favourite feature is typing part of a command and using up and down arrows to cycle through the results, as opposed to ctrl+R and...I don't remember which one. Functions are easy to define too.
You can easily get bash to do that by adding these lines to your .inputrc file. "\e[A": history-search-backward "\e[B": history-search-forward "\e[C": forward-char "\e[D": backward-char
Nonetheless, what moved me from bash to fish was having this as granted. Now I worry only about specific higher-level functions. Also hunting each of these optimizations distracts me from my task at hand.
There's other stuff as well, for instance I'm abusing `for` iterations a lot more to run the same command for lists of things. Using bash before was less ergonomic and painful.
Re: Ask HN: Are alternative (oil, nu, etc.) shells usable as daily drivers?
#38What’s helped a lot more has been replacing shell scripts with Python once they hit a certain complexity level. Huge reduction in code size, better functionality (e.g. it’s trivial to have good CLI argument parsing so people actually add it), and every time a large bash script has been converted some set of error-handling bugs has been fixed.
Re: Ask HN: Are alternative (oil, nu, etc.) shells usable as daily drivers?
#39Earlier quoted context omitted.
I use fish too. My favourite feature is typing part of a command and using up and down arrows to cycle through the results, as opposed to ctrl+R and...I don't remember which one. Functions are easy to define too.
You can easily get bash to do that by adding these lines to your .inputrc file. "\e[A": history-search-backward "\e[B": history-search-forward "\e[C": forward-char "\e[D": backward-char
Re: Ask HN: Are alternative (oil, nu, etc.) shells usable as daily drivers?
#40I decided last year to bite the bullet and learn Powershell. I think I will no longer have to wonder if there is a better option anymore.