1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/.bashrc Thu May 28 22:48:57 2009 +0800
1.3 @@ -0,0 +1,52 @@
1.4 +# .bashrc
1.5 +
1.6 +# User specific aliases and functions
1.7 +export HISTSIZE=50000
1.8 +
1.9 +alias py='python'
1.10 +alias ipy='ipython'
1.11 +alias gpy='ipython --gthread -c "import gtk, gobject"'
1.12 +
1.13 +export EDITOR='vim'
1.14 +# color highlighting for manpages
1.15 +export MANPAGER='col -b | vim -R -c "set ft=man " -'
1.16 +export PAGER="$HOME/bin/vim-pager"
1.17 +alias backtrace=gdb-backtrace
1.18 +alias bt=gdb-backtrace
1.19 +
1.20 +export CVS_RSH=ssh
1.21 +
1.22 +export GNOME_DISABLE_CRASH_DIALOG=1
1.23 +export KDE_DEBUG=1
1.24 +ulimit -c unlimited
1.25 +
1.26 +export MANSECT='0p:3p:1p:3:2:1:4:5:6:7:8:9:l'#:n #tcl
1.27 +
1.28 +[ -f $HOME/pyenv.env ] && source $HOME/pyenv.env
1.29 +
1.30 +# Source global definitions
1.31 +if [ -f /etc/bashrc ]; then
1.32 + . /etc/bashrc
1.33 +fi
1.34 +
1.35 +# grep
1.36 +alias egrep='egrep --color=tty -d skip'
1.37 +alias egrpe='egrep --color=tty -d skip'
1.38 +alias fgrep='fgrep --color=tty -d skip'
1.39 +alias fgrpe='fgrep --color=tty -d skip'
1.40 +alias grep='grep --color=tty -d skip'
1.41 +alias grpe='grep --color=tty -d skip'
1.42 +
1.43 +# readline
1.44 +export INPUTRC=$HOME/.inputrc
1.45 +
1.46 +# mercurial
1.47 +#export HG=$(which hg)
1.48 +#export TORTOISEHG_PATH=$HOME/work/tortoisehg/thg-hg-crew-tip
1.49 +export TORTOISEHG_PATH=$HOME/work/tortoisehg/stable
1.50 +
1.51 +# bash completion
1.52 +source /etc/bash_completion.d/mercurial.sh
1.53 +
1.54 +# pango default language to differentiate CJK
1.55 +export PANGO_LANGUAGE=zh_TW