4 ms·
Did you have to convert your scripts to fish? Or is there an automated way?
by raverbashing 3y ago
Did you have to convert your scripts to fish? Or is there an automated way?
- junon 3y agoYou can always run .sh scripts
- bin_bash 3y agoNobody (I know) that uses fish actually writes scripts in fish. Everyone writes scripts in bash for portability.
- prokopton 3y agoI’ve been writing all my shell scripts as .fish files for years. They’re just for me and I enjoy the syntax.
- ModernCannabist 3y agoSame! I love the syntax, and I only share my .fish scripts with a friend or two I program with that also uses fish.
- theshrike79 3y agoI’ve used fish for a half decade too, I still write my scripts in bash like everyone else. I want them to be standard and portable. Longer scripts get the Python treatment or a Go application.
- rgoulter 3y agoWhile there is a tool called `babelfish` that will automatically convert bash to fish, in practice it's rarely needed. You can run bash scripts from fish. For sourcing, often it makes sense to use direnv to automatically load variables. -- For "just source this one time", in the worst case you can run a bash shell, source that, then run a fish shell.