summaryrefslogtreecommitdiff
path: root/dotfiles/.bash_profile
blob: 2813e890c78d80dcb6fb6ebf33fd89f407d49052 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# -*- shell-script -*-

# Test if this is a GuixSD system.
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

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

# Only configure the SSH agent if we're not in an SSH session with a
# forwarded agent.
if ! [ -n "$SSH_CLIENT" -a -n "$SSH_AUTH_SOCK" ]
then
    export SSH_AUTH_SOCK="$HOME/.gnupg/S.gpg-agent.ssh"
fi

export EDITOR=emacsclient

# Guile
export GUILE_LOAD_PATH="$HOME/.guix-profile/share/guile/site/2.0:$GUILE_LOAD_PATH"
export GUILE_LOAD_COMPILED_PATH="$HOME/.guix-profile/lib/guile/2.0/ccache:$HOME/.guix-profile/share/guile/site/2.0:$GUILE_LOAD_COMPILED_PATH"

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

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

# Info
export INFOPATH="$HOME/.guix-profile/share/info"

# Pidgin
export PURPLE_PLUGIN_PATH="$HOME/.guix-profile/lib/purple-2:/home/dthompson/.guix-profile/lib/pidgin"

export TERMINFO_DIRS="/home/dave/.guix-profile/share/terminfo"

# Extra configuration needed on non-GuixSD systems.
if ! guixsd
then
    export PATH="$HOME/.guix-profile/bin:$PATH"
    export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
fi

# Extra configuration needed for work machine.
if vhl
then
    export PATH="$HOME/.chefdk/gem/ruby/2.1.0/bin:/opt/chefdk/bin:$HOME/.rbenv/bin:$PATH"
    export GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt
    eval "$(rbenv init -)"
fi