-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_bash_profile
More file actions
36 lines (29 loc) · 763 Bytes
/
Copy path_bash_profile
File metadata and controls
36 lines (29 loc) · 763 Bytes
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
# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# include .profile if it exists
if [ -f ~/.profile ]; then
. ~/.profile
fi
# the rest of this file is commented out.
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi
if [ -d ~/.composer/vendor/bin ] ; then
PATH=~/.composer/vendor/bin:"${PATH}"
fi
export EDITOR="vim"
agent="$HOME/tmp/ssh-agent-$USER"
if [ -S "$SSH_AUTH_SOCK" ]; then
case $SSH_AUTH_SOCK in
/tmp/*/agent.[0-9]*)
ln -snf "$SSH_AUTH_SOCK" $agent && export SSH_AUTH_SOCK=$agent
esac
elif [ -S $agent ]; then
export SSH_AUTH_SOCK=$agent
#else
# echo "no ssh-agent"
fi
[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc