From 6fd928594534b2b297071b1790a3d91f6714982c Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 10 Jun 2015 08:22:20 -0400 Subject: bash: Export ghl and guixsd functions. --- dotfiles/.bash_profile | 2 ++ dotfiles/.bashrc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dotfiles/.bash_profile b/dotfiles/.bash_profile index ff1ce98..95afd90 100644 --- a/dotfiles/.bash_profile +++ b/dotfiles/.bash_profile @@ -4,11 +4,13 @@ function guixsd() { return `test -d /run/current-system` } +export -f guixsd # Test if this is my VHL workstation function vhl() { return `test $(hostname) == "7VWJD42"` } +export -f vhl # Honor per-interactive-shell startup file if [ -f ~/.bashrc ]; then . ~/.bashrc; fi diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc index 7df2867..00fe270 100644 --- a/dotfiles/.bashrc +++ b/dotfiles/.bashrc @@ -48,7 +48,7 @@ alias ll='ls -l' alias guix-dev-env="cd ~/Code/guix; guix environment -e '(@@ (gnu packages package-management) guix-devel)'" -if vhl; +if vhl then alias rackknife="knife rackspace -c .chef/rack_knife.rb" fi -- cgit v1.2.3