X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.profile.d%2Fp4.bashrc;h=93627f1149afb56110f691da08414da7ae4b2e07;hb=c9f81db4b0647efd58a9f20eb300ee92735e6d67;hp=53967d1292990e1c400168eb447a889d22426947;hpb=8fe71670e11ed39b39d528d3f7599f4be5b98d83;p=profile.git diff --git a/.profile.d/p4.bashrc b/.profile.d/p4.bashrc index 53967d1..93627f1 100644 --- a/.profile.d/p4.bashrc +++ b/.profile.d/p4.bashrc @@ -1,4 +1,3 @@ -# $Id$ if [ ! -z "$SUDO_USER" ]; then export P4USER=$SUDO_USER export P4TICKETS=/tmp/.p4tickets.$SUDO_USER @@ -7,9 +6,13 @@ else fi export P4CONFIG=.p4config export P4DIFF="diff -u" -export P4EDITOR="vim -S '$HOME/.vim/script/p4'" +if [ -e "$HOME/.vim/script/p4" ]; then + export P4EDITOR="vim -S '$HOME/.vim/script/p4'" +else + export P4EDITOR=vim +fi if [ -z "$DISPLAY" ]; then export P4MERGE="vim -o -c '3wincmd j' -c 'wincmd L'" else - export P4MERGE="p4v -merge" + export P4MERGE="p4merge" fi