• 0 Posts
  • 2 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle

  • lvl@kbin.socialtoLinux@lemmy.mlNaming Bash scripts
    link
    fedilink
    arrow-up
    3
    ·
    11 months ago

    If you use them for your use only, or want them “cleanly” organized, consider prefixing it with something personal to you (or a generic one such as my_). For example, I’d prefix them with l_: my_rename_photos.sh, my_lightson.sh, etc.

    If there’s a lot of them, write a wrapper script which would call the individual scripts from a common location (/usr/share/my-scripts/). Then, you can only make sure your wrapper script is aliased/moved in the PATH. Example: my rename, my lightson, etc.