From d914cc2483dedf78f678bb1874a2643dc5354a93 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 9 Jun 2015 20:24:36 -0400 Subject: bash: Add VHL-specific configuration. --- dotfiles/.bash_profile | 12 ++++++++++++ dotfiles/.bashrc | 5 +++++ 2 files changed, 17 insertions(+) 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 -- cgit v1.2.3