summaryrefslogtreecommitdiff
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
parent60d6f0a62bf694d5c778fdc3a5c33e2bb8a52443 (diff)
bash: Add VHL-specific configuration.
-rw-r--r--dotfiles/.bash_profile12
-rw-r--r--dotfiles/.bashrc5
2 files changed, 17 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
diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc
index 58cb607..7df2867 100644
--- a/dotfiles/.bashrc
+++ b/dotfiles/.bashrc
@@ -47,3 +47,8 @@ alias ls='ls -p --color'
alias ll='ls -l'
alias guix-dev-env="cd ~/Code/guix; guix environment -e '(@@ (gnu packages package-management) guix-devel)'"
+
+if vhl;
+then
+ alias rackknife="knife rackspace -c .chef/rack_knife.rb"
+fi