diff options
author | David Thompson <dthompson@vistahigherlearning.com> | 2015-06-09 20:24:36 -0400 |
---|---|---|
committer | David Thompson <dthompson@vistahigherlearning.com> | 2015-06-09 20:24:36 -0400 |
commit | d914cc2483dedf78f678bb1874a2643dc5354a93 (patch) | |
tree | d28a73ebd039031f07910ebbb12dd650bcbbcb2a | |
parent | 60d6f0a62bf694d5c778fdc3a5c33e2bb8a52443 (diff) |
bash: Add VHL-specific configuration.
-rw-r--r-- | dotfiles/.bash_profile | 12 | ||||
-rw-r--r-- | dotfiles/.bashrc | 5 |
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 |