I’ve done something similiar to this over the years for organization purposes and not having to change much between shells except add a path. You can also add cases that check your shell and do something slightly different if needed.

  • jokro@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    20 hours ago

    No issues except that if you want to source files to set env vars you might have to use a plugin (foreignenv in my case)

    I still write scripts in bash. But fish’s command completion is incredible. Idk, maybe other shells can be that good as well, but fish does out of the box.

    Edit: Also some people used to bash wondered what that nice shell is on a server we administrate together. They had no problems using it coming from bash.

    And sticking with POSIX is good if you want to stay portable, but my shell mustn’t be portable. It should be friendly and reduce mental load.