1 if [ ! -z "$SUDO_USER" ]; then
2 export P4USER=$SUDO_USER
3 export P4TICKETS=/tmp/.p4tickets.$SUDO_USER
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'"
14 if [ -z "$DISPLAY" ]; then
15 export P4MERGE="vim -o -c '3wincmd j' -c 'wincmd L'"
17 export P4MERGE="p4merge"