3 ms·
fish is nice but I've ran into too many issues where some weird shell command / script I find online is expecting to be in bash and I have to switch out of fish
by gtm1260 8y ago
fish is nice but I've ran into too many issues where some weird shell command / script I find online is expecting to be in bash and I have to switch out of fish, so its hard for me to switch.
- ufo 8y agoYou can usually drop to a bash subshell for those
- dagmx 8y agoAs long as they don't need to be sourced, you can just add a shebang for bash at the top of the scripts and run them via bash.
- Macha 8y agoIf they do need to be sourced, you can use bass: https://github.com/edc/bass https://github.com/edc/bass
- breatheoften 8y agoWow this is neat — I’m gonna try this out. Does it really work?
- Macha 8y agoIt works at least for nvm (caveat: Installed from nvm directly, not homebrew), and my company's ssh setup script, which are the two reasons I've had cause to use it.
- h1d 8y agoJust run it with bash then. The syntax is too different to run bash script on fish.
- ComputerGuru 8y agoFish 3 will fix a lot of that. Try the nightly builds.