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.

  • Ferk@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    16 hours ago

    You don’t need root level access though. What I usually do is stick a PATH="$PATH:$HOME/.local/bin and then place all the scripts in there.

    • BeardedGingerWonder@feddit.uk
      link
      fedilink
      English
      arrow-up
      0
      ·
      15 hours ago

      Wouldn’t that require me to have access to everyone’s home directory and need to dump the scripts in everyone’s?

      Potentially I could set up an alt bin directory everyone has access to and configure that in the shared profile, the only drawback there is it might be less obvious whats going on if something breaks and someone else needs to take a look at it.