5 ms·
I'm just gonna use fish because I can't be bothered to setup zsh.
by Hamuko 5y ago
I'm just gonna use fish because I can't be bothered to setup zsh.
- cutthegrass2 5y agozsh can be a real pain to setup if you want a "performant" git status in your prompt. vcs_info is just too damn slow. I prefer minimal customisation and so tend to stay away from heavy plugins like ohmyzsh, though I have friends who use it and really like it.
- yjftsjthsd-h 5y agohttps://github.com/romkatv/powerlevel10k https://github.com/romkatv/powerlevel10k claims to do this (and other things) while remaining extremely fast (apparently the dev was aiming to keep it below the threshold of human perception; not 100% sure that extends to all features or not)
- rgoulter 5y agoFor those not using zsh, https://starship.rs/ https://starship.rs/ is an excellent shell prompt which works with several shells. Using it is very high value-for-effort.
- diroussel 5y agoUse https://starship.rs/ https://starship.rs/ and get a performant prompt that stays the same when you switch between bash, zsh and fish.
- zer 5y agoFish is really great for an interactive shell, I love using it. Not so great when it comes to scripting though. For example I think there's still no way to easily exit a script on error except to manually check exit codes. However I haven't tried writing scripts in zsh yet, just sh/bash.
- auxym 5y agoNothing precludes you from using bash scripts even if ysit fish interactively. Just set a shebang in the script, or run it with bash script.sh. That said, personally, for anything more involved than a one-liner alias kind of script, I turn to python, or PowerShell on Windows.
- Fnoord 5y ago> That said, personally, for anything more involved than a one-liner alias kind of script, I turn to python, or PowerShell on Windows You and submitter (who according to CV is proficient in Python) might like Oilshell.
- maleldil 5y ago> for anything more involved than a one-liner alias kind of script, I turn to python I agree with this. If you can trust your users to have python3 in their environment, I don't see a good reason to use sh/bash instead of python. Non-trivial shell scripts are unreadable to me, and the semantics are too different from normal programming languages. The only scenario I can see is a script that has to call multiple commands over and over, which can be a pain in python if you're piping a lot of stuff and all that. No, piping grep to cut and sed doesn't count; you can do that in python itself.
- computershit 5y ago> If you can trust your users to have python3 in their environment, I don't see a good reason to use sh/bash instead of python You would need to ensure said users have all the pip dependencies your python script imports as well. shell scripts don’t have that issue unless you’re calling some external program that isn’t installed.
- Hamuko 5y ago>shell scripts don’t have that issue unless you’re calling some external program that isn’t installed. Good thing that bash has such an extensive amount of standard libraries and that you're almost never calling external programs? And unlike Python, which is seemingly almost exclusively calling third-party libraries from PyPI?
- drcongo 5y agoFrom the article... > P.S. maybe fish is even better by the way, but I could never get over the bright colouring and all these things popping in and out of my screen; it's such a "busy" chaotic experience! I'd have to spend time disabling all that stuff to make it usable for me, and I never bothered – and if you're disabling the key selling points of a program then it's probably not intended for you anyway. I have no idea what "things popping in and out of my screen" could possibly mean. I use Fish and it's a beautiful, calm experience.
- arp242 5y agoIt does all these "autocomplete" things; for example I type "ls" and then I automatically get "| less" after that (why "| less"? Not sure), also the colours of the text of what I'm typing is constantly changing based on what I typed. I appreciate that some people really like this sort of thing and that great, but it's not for me – I find it very distracting and "chaotic". Completion is brilliant, but I only want it on-demand (same with autocomplete when writing code).
- Hamuko 5y ago>why "| less"? Not sure Pretty sure it's autocompleting the last thing that you executed that started with "ls".
- drcongo 5y agoThat's exactly what it's doing.
- arp242 5y agoNot sure where it's getting that from, because I installed fish just for that comment and I don't recall running it any time recently (not for years), and even after deleting all "fish" related things I can find in my ~ it keeps doing it, hmm... Anyhow, doesn't really matter shrug.
- unixhero 5y agoOne still needs oh-my-fish, as one needs oh-my-zsh. So the setup time is 100% equal for fish and zsh. https://github.com/oh-my-fish/oh-my-fish https://github.com/oh-my-fish/oh-my-fish https://github.com/ohmyzsh/ohmyzsh/ https://github.com/ohmyzsh/ohmyzsh/ , https://ohmyz.sh/ https://ohmyz.sh/
- nerdponx 5y agoI very strongly disagree that you need or even want OMZ. You don't need it for Bash, why would you need it for Zsh? It might be nice when you're getting started, so you don't have to learn all the ins and outs of the shell to have cool prompts and other useful functionality.
- faho 5y agoDespite the similar names, what oh-my-fish and oh-my-zsh provide isn't comparable. E.g. oh-my-zsh adds a bunch of keybindings and a git prompt, and sets a bunch of options (like turning on history deduplication, or comments in interactive sessions). Fish already does equivalents of much of that, by default, so oh-my-fish doesn't have to do it. They mostly add more prompts (with their own, separate, git prompt implementation) and provide a package manager. That means fish without oh-my-fish is already close to the experience of zsh with oh-my-zsh. (disclaimer: I'm a fish developer, and not really involved with oh-my-fish - I sent a few courtesy patches over the years)
- Hamuko 5y ago~ > omf fish: Unknown command: omf Apparently one does not.
- yjftsjthsd-h 5y agoI suppose that's the nano equivalent:) And that's not the insult you might expect: It sometimes is viewed as a toy, but it actually has depth and does a lot more than one might expect, all while staying very user friendly, albeit at the expense of being rather different than the other major options.