summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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