2 [ -z "$PS1" ] && return
3 export CVSROOT=:pserver:arrow_zhang@scs:12121/home/cvsadmin/sbu-iii
4 alias agvim="/usr/bin/gvim"
5 alias laptop="/usr/bin/ssh -X arrowup.3322.org"
6 alias goserver="/usr/bin/ssh -X sbu31"
7 alias go220="/usr/bin/ssh -X sbu31"
8 alias godell="/usr/bin/ssh -X dell"
9 alias startx="/usr/bin/startx >/tmp/x 2>&1"
10 alias linux="/usr/bin/ssh -X linux"
11 alias gearrow="ge arrow"
12 alias geroot="sudo ge root"
13 alias debugarrow="telnet 192.168.1.1"
14 alias arrow-ping="ping www.163.com"
15 alias ccc='cvs -d :pserver:jeans@fog:/data/cvsroot'
17 alias tolap="`which ssh` -X 172.21.5.133 -p 12"
18 alias toarrow="/usr/bin/ssh -X 172.21.5.133"
20 alias exit="clear; exit"
21 alias pacsearch="pacman -Sl | cut -d ' ' -f 2 | grep "
22 alias pacup="sudo pacman -Syu"
23 alias pac="sudo pacman -S"
24 alias pacs="pacsearch"
25 alias pacd="sudo pacman -Rs"
26 alias pacdf="sudo pacman -Rsn"
27 alias paci="pacman -Si"
29 # echo -e "$(pacman -Ss "$@" | sed \
30 # -e 's#core/.*#\\033[1;31m&\\033[0;37m#g' \
31 # -e 's#extra/.*#\\033[0;32m&\\033[0;37m#g'\
32 # -e 's#community/.*#\\033[1;35m&\\033[0;37m#g' \
33 # -e 's#^.*/.* [0-9].*#\\033[0;36m^\\033[0;37m#g' ) \
37 echo -e "$(pacman -Ss "$@" | sed \
38 -e 's#core/.*#\\033[1;31m&\\033[0;37m#g' \
39 -e 's#extra/.*#\\033[0;32m&\\033[0;37m#g' \
40 -e 's#community/.*#\\033[1;35m&\\033[0;37m#g' \
41 -e 's#^.*/.* [0-9].*#\\033[0;36m&\\033[0;37m#g' ) \
45 # alias notes="wine /home/arrow/.wine/drive_c/Lotus/Notes/notes.exe"
46 #alias notes="export LANG=zh_CN.UTF-8;export LANGUAGE=zh_CN.UTF-8;LC_ALL=zh_CN.UTF-8;wine /home/arrow/.wine/drive_c/Lotus/Notes/notes.exe"
47 #alias notes="export LANG=zh_CN.GB2312;export LANGUAGE=zh_CN.GB2312;LC_ALL=zh_CN.GB2312;wine /home/arrow/.wine/drive_c/Lotus/Notes/notes.exe"
48 #alias notes="wine /home/arrow/.wine/drive_c/Lotus/Notes/notes.exe"
49 #alias stock="wine /home/arrow/.wine/drive_c/new_zxzq_test/TdxW.exe"
50 alias cdhome="cd `cat /home/arrow/.tmp/.arrow-new-pwd`"
51 alias mutt="LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 mutt"
52 alias x="startx & sleep 2 && exit"
53 alias e8test="export LANG=zh_CN.GB2312;export LANGUAGE=zh_CN.GB2312;LC_ALL=zh_CN.GB2312;wine /home/arrow/.wine/drive_c/e8test/e8test.exe"
54 alias qq="sudo /home/arrow/.bin/pro/qq/lumaqq"
55 alias vimlist="vim --serverlist"
58 alias lf='/bin/ls --full-time'
62 alias grep="grep --color"
63 alias mycvs="cvs -d ${LAPCVSROOT} $*"
68 # alias cu='sudo chmod 777 /dev/ttyUSB0 && sudo cu -l /dev/ttyUSB0 -s 115200'
70 alias ssh="/usr/bin/ssh -X"
72 XDM_PATH=/bin:/usr/bin:/sbin:/usr/sbin:/opt/kde/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/opt/qt/bin
73 ARROW_PATH=/home/arrow/.bin/shell:/usr/local/bin:/usr/local/sbin:/bin:/usr/games
74 A_TOOL_PATH=/work/.opt/mv_tools/bin
75 export PATH=$ARROW_PATH:$A_TOOL_PATH$XDM_PATH
77 export MANPATH=$MANPATH:/work/.opt/iad6358/man
80 export MAC_SYS="00:90:F5:25:19:C1"
81 export SVNTP="svn://172.31.2.251:36901/svn/Platform/DG834GV/Neutral"
82 export SVNLINUX="https://linuxsys.googlecode.com/svn/trunk"
83 export SIP_DOMAIN=localhost
87 export PS1="
\e[01;36m\u@
\e[02;33m\H:\W>
\e[0m"
88 #export PS1="\015\033[1m\u@\H:\W> \033[0m"
89 if [ -f /etc/bash_completion ]; then
90 . /etc/bash_completion
92 if [ "$TERM" != "dumb" ]; then
93 #arrow eval "`dircolors ~/.arrowcolor`"
94 eval "`dircolors ~/.arrowcolor`"
95 alias ls='ls --color=auto'
98 if [ "$TERM" != "dumb" ]; then
100 alias ls='ls --color=auto'
105 PROMPT_COMMAND='echo -ne "\033]0;${PWD/$HOME/~} /-/${USER}@${HOSTNAME}\007|"'
106 # PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
115 rxvt* | "rxvt-unicode") #not tty
116 if [ "$A_HV_RT" = "Y" ]; then
117 PWDFILE="${HOME}/.tmp/.arrow-new-pwd"
118 if [ ! -f $PWDFILE ]; then
127 #PS1='
\e[01;32m\u
\e[01;35m@
\x1d\e[01;36m\h
\e[00m:
\e[01;34m \w\n
\e[01;39m$?
\e[01;38m\$
\e[00m'
128 #PS1='
\e[01;32m\u
\e[01;35m@
\x1d\e[01;36m\h
\e[00m:
\e[01;34m \w
\e[00m\n$?\$ '
129 PS1='
\e[01;32m\u
\e[01;35m@
\x1d\e[01;36m\h
\e[00m:
\e[01;32m \w
\e[00m \n$?\$ '