I really enjoy using a command-line interface instead of a graphical user interface, and was wondering if anyone had any solid recommendations for applications that one can use in a terminal window.
I love fish-shell, but after years of using it I switched to Oh My ZSH!. The bash compatibility makes it a whole lot easier to use when you're the type of person who has to look up "how to do X on the command line" on the internet more often than you'd like to admit (that would be me).
that would rather defeat the point, since fish breaks compatibility by design, that's part of what i like about it.
i can however appreciate that breaking bash compatibility is not for everyone. i mix use of bash and fish. but more often than not i find myself in a situation where i switch to fish because it makes some complex command easier, than the reverse. greetings, eMBee.
There are a few plugins you can use with oh-my-fish and similar tools, for example `fish-foreign-env`, which provide a command (`fenv`, in this case) which runs a given command in bash and then transfers environment variable changes to the fish environment from which it was called.
It's not bash compatibility, but it is good enough for one-offs and even for many scripts and tools that expect to be sourced in your dotfiles from bash.
But the whole reason I use fish is because I DON'T have to look things up on the internet because it uses sane syntax instead of some arcane combination of brackets, symbols, and the word “if” spelled backwards.
fwiw, we are shipping a number of features in fish 3.0 (any day now!) that are specifically targeting at maximizing compatibility with most bash scripts (still not POSIX).
That includes support for && and || and a few other things that should go a long way towards making most code you find drop-in ready.
Really? Doesn't that go against the stated fish design document and ridiculousfish's intention for fish?
I'm more concerned about making fish scripts work well than making fish run bash scripts. (Maybe fish 3.0 will improve that too.) I've tried to use fish for writing somewhat serious scripts several times, and I've always run into frustrating problems that sent me back to bash for scripting. Fish is an excellent interactive shell, of course.
I also love zgen and used to use some parts of OMZ with it. But after debugging weird issues a bunch of times and always finding a funny opinionated config in OMZ I changed everything to Prezto. Zgen supports Prezto natively.
I'm in the same boat as you. Also used Fish for several years and loved it, but there's some incompatibilities here and there (dont remember exactly what, I think it was difference in how to pipe streams vs bash/zsh).
In the end i switched to zsh & oh-my-zsh and haven't run into issues since (made the switch maybe 6 years ago). I'm a heavy terminal user so this part I'm not experimenting with again.
Comments (385) 158 threads
Show all comments
Showing thread 1 of 158
fish-shell: https://github.com/fish-shell/fish-shell/
ranger: https://github.com/ranger/ranger/
tig: https://github.com/jonas/tig/
ag or rg: https://github.com/ggreer/the_silver_searcher https://github.com/BurntSushi/ripgrep
And all my configurations, especially for fish-shell: http://github.com/c02y/dotfiles
https://ohmyz.sh/
i can however appreciate that breaking bash compatibility is not for everyone.
i mix use of bash and fish. but more often than not i find myself in a situation where i switch to fish because it makes some complex command easier, than the reverse.
greetings, eMBee.
It's not bash compatibility, but it is good enough for one-offs and even for many scripts and tools that expect to be sourced in your dotfiles from bash.
[1] https://github.com/edc/bass
I still use fish for scripting as its syntax is far more casual looking.
That includes support for && and || and a few other things that should go a long way towards making most code you find drop-in ready.
I'm more concerned about making fish scripts work well than making fish run bash scripts. (Maybe fish 3.0 will improve that too.) I've tried to use fish for writing somewhat serious scripts several times, and I've always run into frustrating problems that sent me back to bash for scripting. Fish is an excellent interactive shell, of course.
Continue this thread — 2 replies
If you use a lot of addons, this can load up prompts faster without losing any OMZ goodness.
FWIW, here's my .zshrc. https://github.com/dancek/dotfiles/blob/master/.zshrc
https://github.com/jarun/nnn