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

# 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