diff options
author | David Thompson <dthompson@vistahigherlearning.com> | 2015-05-26 14:54:26 -0400 |
---|---|---|
committer | David Thompson <dthompson@vistahigherlearning.com> | 2015-05-26 14:54:26 -0400 |
commit | 85847989e4f65329dd28ff31cf6027dbb296b36a (patch) | |
tree | fbdcf8925a8cd036aef15cb985dd1aa281a5ebf7 | |
parent | aeb1518048e67354bc26d7bb6672f0ed52b0aafc (diff) |
bash: Add config for non-GuixSD systems.
-rw-r--r-- | dotfiles/.bash_profile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dotfiles/.bash_profile b/dotfiles/.bash_profile index cb03ccf..836f648 100644 --- a/dotfiles/.bash_profile +++ b/dotfiles/.bash_profile @@ -1,5 +1,10 @@ # -*- shell-script -*- +# Test if this is a GuixSD system. +function guixsd() { + return `test -d /run/current-system` +} + # Honor per-interactive-shell startup file if [ -f ~/.bashrc ]; then . ~/.bashrc; fi @@ -8,3 +13,10 @@ export PATH="$HOME/.guix-profile/sbin:$PATH" # SSH agent. export SSH_AUTH_SOCK="$HOME/.gnupg/S.gpg-agent.ssh" + +# Extra configuration needed on non-GuixSD systems. +if ! guixsd +then + export PATH="$HOME/.guix-profile/bin:$PATH" + export LOCPATH="$HOME/.guix-profile/lib/locale" +fi |