X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.profile.d%2Fp4.bashrc;fp=.profile.d%2Fp4.bashrc;h=53967d1292990e1c400168eb447a889d22426947;hp=0000000000000000000000000000000000000000;hb=8fe71670e11ed39b39d528d3f7599f4be5b98d83;hpb=3ff1a5fe638ff41463c0a08394ea51fd95a7e54d diff --git a/.profile.d/p4.bashrc b/.profile.d/p4.bashrc new file mode 100644 index 0000000..53967d1 --- /dev/null +++ b/.profile.d/p4.bashrc @@ -0,0 +1,15 @@ +# $Id$ +if [ ! -z "$SUDO_USER" ]; then + export P4USER=$SUDO_USER + export P4TICKETS=/tmp/.p4tickets.$SUDO_USER +else + export P4USER=$USER +fi +export P4CONFIG=.p4config +export P4DIFF="diff -u" +export P4EDITOR="vim -S '$HOME/.vim/script/p4'" +if [ -z "$DISPLAY" ]; then + export P4MERGE="vim -o -c '3wincmd j' -c 'wincmd L'" +else + export P4MERGE="p4v -merge" +fi