-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_profile
40 lines (32 loc) · 1.16 KB
/
.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
33
34
35
36
37
38
39
40
############################################################################
# .bash_profile
#
#---------------------------------------------------------------------------
# Load Aliases and Functions
#---------------------------------------------------------------------------
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
#---------------------------------------------------------------------------
# Update Path and Environment
#---------------------------------------------------------------------------
unset TMOUT
TMOUT=0
export TMOUT
PATH=$PATH:$HOME/bin
export PATH
#---------------------------------------------------------------------------
# SSH Configuration
#---------------------------------------------------------------------------
function launch_ssh_agent () {
#if [ -z "${SSH_AUTH_SOCK}" ] ; then
eval `ssh-agent -s`
ssh-add
#fi
}
# Only launch automatically if we are not ssh'ing into a remote host
if [ -z "${SSH_TTY}" ] ; then
launch_ssh_agent
fi
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
[[ -f "$HOME/.linuxbrew/bin/brew" ]] && eval $("$HOME/.linuxbrew/bin/brew" shellenv)