summaryrefslogtreecommitdiff
path: root/dotfiles/.bash_profile
blob: ad4fb7f5557c90a9c5e918dc764f94b06bd1ed92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- 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

# Search for binaries in user profile /sbin.
export PATH="$HOME/.guix-profile/sbin:$PATH"

# SSH agent.
export SSH_AUTH_SOCK="$HOME/.gnupg/S.gpg-agent.ssh"

# Ruby.
export GEM_PATH="$HOME/.guix-profile/lib/ruby/gems/2.2.0"

# Guix
export GUIX_PACKAGE_PATH="$HOME/Code/guix-custom"

# 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