Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add solution for PATH config #2

Open
DavidFrahm opened this issue Jul 7, 2015 · 2 comments
Open

Add solution for PATH config #2

DavidFrahm opened this issue Jul 7, 2015 · 2 comments

Comments

@DavidFrahm
Copy link
Owner

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
Copy link
Owner Author

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
Copy link
Owner Author

This dotfiles repo README explains good use of .extra:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant