4 ms·
I start using fish, really like its feature set, but then have to give up and switch back to zsh when I want to get anything done. Unlike zsh, Fish isn't compat
by evnix 3y ago
I start using fish, really like its feature set, but then have to give up and switch back to zsh when I want to get anything done. Unlike zsh, Fish isn't compatible with bash syntax, so a lot of existing scripts and software just doesn't work right. Even today people write scripts as if bash already exists and they seem to always target it. I wish fish had some form of compatibility layer.
- osmsucks 3y agoI've been using it for years and most things I need nowadays just work (i.e. have Fish support out of the box). For all the rest, perhaps give https://github.com/edc/bass https://github.com/edc/bass a try.
- mulmen 3y agoCan you add a shebang and make the script executable or just run the script as an argument to the bash program?
- arbitrandomuser 3y agoThis . You just have to use fish for live interacting with the system aaand its great ,for everything else you can stick to bash. Don't even change your default shell with chsh ,rather just point your terminal emulator to launch fish
- jackhalford 3y agoAre sourcing bash scripts in a fish shell? If you can either run bash ./xyz or add the shebang #!/bin/bash to run scripts with the intended interpreter
- eviks 3y agofish has a compatibility layer, and existing scripts still can use bash
- markstos 3y agoFish runs bash scripts just fine, as it does any script with a shebang line. IT is increasingly compatible with random CLI commands copy and pasted from the internet. For those that don't work right away, just type `bash` to enter bash shell, run the command return back to Fish. If a significant part of your day is spent copying CLI command from the internet, then yes, perhaps Bash is a better choice for you.
- petepete 3y agoI recreated my zsh setup in fish with about 10% of the config and just one plugin (fzf.fish). Nearly everything I want, fancy autocompletion, syntax highlighting, git-aware prompt just worked out of the box.