5 ms·
I always see these posts, get tempted to use fish instead of bash but then I ask the ubiquity question and end up saying "Not today..."
by ducktective 6y ago
I always see these posts, get tempted to use fish instead of bash but then I ask the ubiquity question and end up saying "Not today..."
- ComputerGuru 6y agoThe ubiquity question?
- ducktective 6y agobash is installed by default on pretty much everything but for fish I need to un-learn bash shenanigans like `esac` which I fear would hurt more than help in general. Either that, or maybe I'm just lazy and missing out on a nice tool...
- ComputerGuru 6y agoFish made me write better bash scripts because it gave me a proper understanding of IFS, test, and other shell “basics” since it removes a layer of automagic by simplifying the syntax. Eg fish discourages the use of `if [` and it makes you realize that the bracket isn’t a grammatical construct but rather a terribly named command.
- acdha 6y agoI switched entirely for interactive use a couple of years ago and have only had positive things to say. I still use Bash for scripts but that’s exclusively scripts which I edit in a real editor with version control, 100% shellcheck, etc. and even then I’ve been rewriting most non-trivial scripts into Python for the last decade so it gets sane error handling and data structures, not to mention usually ending up being shorter due to the richer library.
- epicide 6y agoIf you mean for script portability: you can still easily call scripts with bash directly. For scripts that modify the environment, use bass. If you mean that you still have to use bash on other machines: yeah, I feel you there. At least for me, I'm fortunate that if I end up using a machine frequently, I can just install fish and add my config/dot files.
- segfaultbuserr 6y agoI used to have Vim with dozens of plugins installed, nowadays I consciously use Vim without relying on any plugin and try learning to do the same with only the basic movement commands, so I can be productive no matter what machine I'm using/logged into today - otherwise they'll be forgotten (hackers used to survive in the original vi without visual mode or multiple undo, I think surviving a pluginless Vim shouldn't be difficult). Some for the shell.
- joseluisq 6y agoIt deserves a try! However don't get tempted to think that Fish is Bash drop-in replacement, personally I can not be more disagree with that idea. Bash is a pretty useful and powerful scripting too, especially in server side (among other big list of stuff as you know).
- jacobsenscott 6y agoThis hasn't happened to me. I guess I've never used my prompt as a programming environment, so switching from zsh to fish hasn't impacted by ability to write posix shell script anymore than it as impacted my ability to write ruby or javascript. I use fish strictly as a command line and it is fantastic.