git://git.iain.cx/iain
/
profile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle git p4 submit.
[profile.git]
/
.profile.d
/
p4.bashrc
diff --git
a/.profile.d/p4.bashrc
b/.profile.d/p4.bashrc
index
94cd19c
..
b4134c0
100644
(file)
--- a/
.profile.d/p4.bashrc
+++ b/
.profile.d/p4.bashrc
@@
-13,7
+13,11
@@
else
export P4EDITOR=vim
fi
if [ -z "$DISPLAY" ]; then
export P4EDITOR=vim
fi
if [ -z "$DISPLAY" ]; then
- export P4MERGE="vim -o -c '3wincmd j' -c 'wincmd L'"
+ if [ -e "$HOME/.vim/script/p4" ]; then
+ export P4MERGE="vim -S '$HOME/.vim/script/p4'"
+ else
+ export P4MERGE="vim -o -c '3wincmd j' -c 'wincmd L'"
+ fi
else
export P4MERGE="p4merge"
fi
else
export P4MERGE="p4merge"
fi