From 4e76d70773427a97cc7c54f6cfc218f070b8b0fa Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Wed, 13 Nov 2013 17:38:10 -0800 Subject: [PATCH] Add loading ~/opt/bash/env to keep private settings This is for things like API keys or other settings that I do not want to keep on github --- bash/environment | 2 +- bashrc | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bash/environment b/bash/environment index 9402687..05cf2a1 100644 --- a/bash/environment +++ b/bash/environment @@ -43,8 +43,8 @@ _add-path /Library/Frameworks/Python.framework/Versions/2.7/bin _add-path ~/.rvm/bin _add-path ~/opt/bin _add-path /usr/local/mysql/bin -_add-path /opt/local/bin _add-path /opt/vertica/bin +_add-path /opt/local/bin _add-path /opt/local/sbin _add-path /opt/bin _add-path ~/bin diff --git a/bashrc b/bashrc index d804424..26909f9 100644 --- a/bashrc +++ b/bashrc @@ -25,6 +25,10 @@ if [ -f ~/.bash/prompt ]; then source ~/.bash/prompt fi +if [ -f ~/opt/bash/env ]; then + source ~/opt/bash/env +fi + # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). @@ -35,4 +39,3 @@ fi if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then source /opt/local/etc/profile.d/bash_completion.sh fi -