DavidFrahm / setup

Automated setup for Mac OS X
2 stars 1 forks source link

Add solution for PATH config #2

Open DavidFrahm opened 9 years ago

DavidFrahm commented 9 years ago

Some dotfiles solutions say publishing your PATH is insecure, so need to decide if I care about that. If not, just do more dotfiles same as I already am. If so, then need to find a way to automate this more securely than the other dotfiles.

DavidFrahm commented 9 years ago

One solution: https://github.com/mathiasbynens/dotfiles/blob/3a47ebe1faf72222b1915853a3ce093ac8908853/.bash_profile

# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
    [ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;
DavidFrahm commented 9 years ago

This dotfiles repo README explains good use of .extra: