summaryrefslogtreecommitdiff
path: root/dotfiles/.bash_profile
blob: cfbd21e1136eec4b50b495c4d4ad92fe26a5004a (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
# -*- 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

export EDITOR=emacsclient

if [ -f $HOME/.guix-profile/etc/profile ]
then
    source $HOME/.guix-profile/etc/profile
fi

# Extra configuration needed for work machine.
if vhl
then
    source /etc/profile.d/rvm.sh
    export GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt
fi

export PATH="$HOME/.config/guix/current/bin${PATH:+:}$PATH"
export AWS_REGION="us-east-1"
export CFN_ROLE_ARN="arn:aws:iam::097392476160:role/iam-production-CloudformationServiceRole-1OZCORE3R6EZ9"
export SLACK_TOKEN="xoxp-4376114194-5187822990-220986355462-5cf39430c2189530252249bf9746d480"