summaryrefslogtreecommitdiff
path: root/dotfiles/.bash_profile
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2015-06-09 20:24:36 -0400
committerDavid Thompson <dthompson@vistahigherlearning.com>2015-06-09 20:24:36 -0400
commitd914cc2483dedf78f678bb1874a2643dc5354a93 (patch)
treed28a73ebd039031f07910ebbb12dd650bcbbcb2a /dotfiles/.bash_profile
parent60d6f0a62bf694d5c778fdc3a5c33e2bb8a52443 (diff)
bash: Add VHL-specific configuration.
Diffstat (limited to 'dotfiles/.bash_profile')
-rw-r--r--dotfiles/.bash_profile12
1 files changed, 12 insertions, 0 deletions
diff --git a/dotfiles/.bash_profile b/dotfiles/.bash_profile
index ad4fb7f..9334ce0 100644
--- a/dotfiles/.bash_profile
+++ b/dotfiles/.bash_profile
@@ -5,6 +5,11 @@ function guixsd() {
return `test -d /run/current-system`
}
+# Test if this is my VHL workstation
+function vhl() {
+ return `test $(hostname) == "7VWJD42"`
+}
+
# Honor per-interactive-shell startup file
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
@@ -26,3 +31,10 @@ then
export PATH="$HOME/.guix-profile/bin:$PATH"
export LOCPATH="$HOME/.guix-profile/lib/locale"
fi
+
+# Extra configuration needed for work machine.
+if vhl
+then
+ export PATH="$HOME/.chefdk/gem/ruby/2.1.0/bin:/opt/chefdk/bin:$HOME/.rbenv/bin:$PATH"
+ eval "$(rbenv init -)"
+fi