summaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorDavid Thompson <davet@gnu.org>2015-06-10 08:22:20 -0400
committerDavid Thompson <davet@gnu.org>2015-06-10 08:22:40 -0400
commit6fd928594534b2b297071b1790a3d91f6714982c (patch)
treee4315b9cdce60b17ffad43e29525009f2d0899d1 /dotfiles
parenta2885eefc22513329c01ca86c8e2c43c440e17fc (diff)
bash: Export ghl and guixsd functions.
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.bash_profile2
-rw-r--r--dotfiles/.bashrc2
2 files changed, 3 insertions, 1 deletions
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