CJK font support.
[profile.git] / .profile.d / p4.bashrc
1 if [ ! -z "$SUDO_USER" ]; then
2   export P4USER=$SUDO_USER
3   export P4TICKETS=/tmp/.p4tickets.$SUDO_USER
4 else
5   export P4USER=$USER
6 fi
7 export P4CONFIG=.p4config
8 eval $(alias diff 2>/dev/null | sed 's/^alias diff/P4DIFF/')
9 export P4DIFF="${P4DIFF:-diff} -u"
10 if [ -e "$HOME/.vim/script/p4" ]; then
11   export P4EDITOR="vim -S '$HOME/.vim/script/p4'"
12 else
13   export P4EDITOR=vim
14 fi
15 if [ -z "$DISPLAY" ]; then
16   export P4MERGE="vim -o -c '3wincmd j' -c 'wincmd L'"
17 else
18   export P4MERGE="p4merge"
19 fi