X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.profile.d%2Fp4.bashrc;h=93627f1149afb56110f691da08414da7ae4b2e07;hb=76559e10296433ab488b9d9940c50a39282ee49a;hp=0422ee85858e4db642ecfdb4046a3061c38ce4f4;hpb=819bb88d5a014a23150b8fd609d194e883958674;p=profile.git diff --git a/.profile.d/p4.bashrc b/.profile.d/p4.bashrc index 0422ee8..93627f1 100644 --- a/.profile.d/p4.bashrc +++ b/.profile.d/p4.bashrc @@ -6,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