Sample Header Ad - 728x90

Where to put my own shell scripts and configuration files?

0 votes
2 answers
534 views
Could anybody explain, in which directory (or directories) I should place my own shell scripts and configuation files on macOS? - /usr/local/bin/? - /usr/local/etc/? - $HOME/bin/? - $HOME/etc/? - ... ? A best practice or a most common way? Example files are: - webpage2pdf.zsh - an ImageMagick script to convert a webpage to PDF - .webpage2pdf - a configuration file for it - .zshrc_my-own - a Zsh cofiguration file that is sourced in my ~/.zshrc using source, as suggested by Gilles to avoid accidental overridings: https://unix.stackexchange.com/a/787409
Asked by jsx97 (1347 rep)
Dec 1, 2024, 07:39 PM
Last activity: Dec 2, 2024, 12:52 AM