-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_profile
32 lines (26 loc) · 871 Bytes
/
bash_profile
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
#!/bin/bash
if [[ -n $TMUX ]] && [[ "$(uname -s)" =~ ^Darwin* ]]; then
# /etc/profile causes PATH contortion on OSX in login shells
# better to just detect that and start from empty
if [ -f /etc/profile ]; then
PATH=""
source /etc/profile
fi
fi
source "$(dirname ${BASH_SOURCE[0]})/bash_PATH_mod_funcs.sh"
complete -C '/usr/local/bin/aws_completer' aws
if [[ -z $TMUX ]]; then
if [ -d "${HOME}/.rvm" ]; then
echo "~/.rvm exists"
pathaddbin "$HOME/.rvm" # Add RVM to PATH for scripting
# Load RVM into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
fi
fi
export GOENV_ROOT="$HOME/.goenv"
pathprependbin "$GOENV_ROOT"
export GOENV_DISABLE_GOPATH=1
eval "$(goenv init -)"
if [[ -n $(go env GOPATH) ]]; then
pathaddbin "$(go env GOPATH)" # at the end of the list for security
fi