1 if [ ! -z "$SUDO_USER" ]; then
2 export P4USER=$SUDO_USER
3 export P4TICKETS=/tmp/.p4tickets.$SUDO_USER
7 export P4CONFIG=.p4config
8 eval $(alias diff 2>/dev/null | sed 's/^alias diff/P4DIFF/')
9 export P4DIFF="${P4DIFF:-diff} -u"
10 if [ -e "$HOME/.vim/script/p4" ]; then
11 export P4EDITOR="vim -S '$HOME/.vim/script/p4'"
15 if [ -z "$DISPLAY" ]; then
16 if [ -e "$HOME/.vim/script/p4" ]; then
17 export P4MERGE="vim -S '$HOME/.vim/script/p4'"
19 export P4MERGE="vim -o -c '3wincmd j' -c 'wincmd L'"
22 export P4MERGE="p4merge"