93627f1149afb56110f691da08414da7ae4b2e07
[profile.git] / .profile.d / p4.bashrc
1 if [ ! -z "$SUDO_USER" ]; then
2   export P4USER=$SUDO_USER
3   export P4TICKETS=/tmp/.p4tickets.$SUDO_USER
4 else
5   export P4USER=$USER
6 fi
7 export P4CONFIG=.p4config
8 export P4DIFF="diff -u"
9 if [ -e "$HOME/.vim/script/p4" ]; then
10   export P4EDITOR="vim -S '$HOME/.vim/script/p4'"
11 else
12   export P4EDITOR=vim
13 fi
14 if [ -z "$DISPLAY" ]; then
15   export P4MERGE="vim -o -c '3wincmd j' -c 'wincmd L'"
16 else
17   export P4MERGE="p4merge"
18 fi