4 ms·
Is there anyone who can provide a simple summary for bash v zsh vs fish? Maybe I’m lazy but I’ve just stuck with bash for.. well since ever. Maybe it’s time to
by beermonster 5y ago
Is there anyone who can provide a simple summary for bash v zsh vs fish? Maybe I’m lazy but I’ve just stuck with bash for.. well since ever. Maybe it’s time to try something new but then if it ain’t broke… anyway would be interested in what things it does that I never knew I needed or things which just make life simpler/easier.
- bobbylarrybobby 5y agohttps://fishshell.com/docs/current/fish_for_bash_users.html#fish-for-bash-users https://fishshell.com/docs/current/fish_for_bash_users.html#...
- emilecantin 5y agoAutocomplete is much better. For example, just typing "y" displays "arn start" in gray _after_ my cursor. I can then refine my command, or use right-arrow to accept the suggestion. And this is just one example; fish is full of small usability touches like that. If you need to run a bash script, `bash the_script.sh` still works
- mikojan 5y agoOf course you could always just do ctrl+r and cycle through and refine suggestions in bash
- pxc 5y agoThe Fish suggestion the GP is describing isn't based on history, although it also autocompletes from commands in your history that way. That's part of the baseline autocompletion functionality of the whole shell, for all command names, local files, etc.
- yourad_io 5y agoExpanding on the local file competition: this is even context aware in some cases! If you have four files starting with "A", one of which ends in .gz, typing "gunzip A" will suggest the .gz file. Likewise for things like "git add" - as soon as you type an identifiable prefix to a changed file it will be suggested (eg if you only have one changed file in src/ it will suggest that when you type git add src)
- mikojan 5y ago> If you have four files starting with "A", one of which ends in .gz, typing "gunzip A" will suggest the .gz file. Bash does this for me as well.
- notfed 5y agoZsh does this too...but you have to configure zsh-autosuggestions. The difference is that fish does this of the box with no configuration.