trevor (he/they)@lemmy.blahaj.zoneto
Linux@programming.dev•Fish Shell 4.8 Improves History Search, Scripting, and CompletionsEnglish

5 days
Basically every non-Windows system comes with a POSIX-compliant shell at /bin/sh. If you’re using shebangs in your POSIX shell scripts like you should, using Fish as your Friendly Interactive Shell shouldn’t be a problem.
Actually,
/bin/shis available on NixOS 🤓Yes, it’s true that
#!/usr/bin/env bashis a more reliable way to get bash, but you mentioned that you wanted a POSIX shell, not that you specifically needed bash, so#!/bin/shwill work on any system including NixOS.Also,
export a=bdoes work in Fish. But you don’t have to use it if you don’t know how it works.