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
colordiff.
[profile.git]
/
.profile.d
/
p4.bashrc
diff --git
a/.profile.d/p4.bashrc
b/.profile.d/p4.bashrc
index
93627f1
..
94cd19c
100644
(file)
--- a/
.profile.d/p4.bashrc
+++ b/
.profile.d/p4.bashrc
@@
-5,7
+5,8
@@
else
export P4USER=$USER
fi
export P4CONFIG=.p4config
export P4USER=$USER
fi
export P4CONFIG=.p4config
-export P4DIFF="diff -u"
+eval $(alias diff 2>/dev/null | sed 's/^alias diff/P4DIFF/')
+export P4DIFF="${P4DIFF:-diff} -u"
if [ -e "$HOME/.vim/script/p4" ]; then
export P4EDITOR="vim -S '$HOME/.vim/script/p4'"
else
if [ -e "$HOME/.vim/script/p4" ]; then
export P4EDITOR="vim -S '$HOME/.vim/script/p4'"
else