| author | Scott Tsai <scottt.tw@gmail.com> |
| Thu May 28 22:48:57 2009 +0800 (2 years ago) | |
| changeset 2 | 039328367673 |
| child 5 | 079f7ebf0c6e |
| permissions | -rw-r--r-- |
| scottt@0 | 1 |
# .bashrc |
| scottt@0 | 2 |
|
| scottt@0 | 3 |
# User specific aliases and functions |
| scottt@0 | 4 |
export HISTSIZE=50000 |
| scottt@0 | 5 |
|
| scottt@0 | 6 |
alias py='python' |
| scottt@0 | 7 |
alias ipy='ipython' |
| scottt@0 | 8 |
alias gpy='ipython --gthread -c "import gtk, gobject"' |
| scottt@0 | 9 |
|
| scottt@0 | 10 |
export EDITOR='vim' |
| scottt@0 | 11 |
# color highlighting for manpages |
| scottt@0 | 12 |
export MANPAGER='col -b | vim -R -c "set ft=man " -' |
| scottt@0 | 13 |
export PAGER="$HOME/bin/vim-pager" |
| scottt@0 | 14 |
alias backtrace=gdb-backtrace |
| scottt@0 | 15 |
alias bt=gdb-backtrace |
| scottt@0 | 16 |
|
| scottt@0 | 17 |
export CVS_RSH=ssh |
| scottt@0 | 18 |
|
| scottt@0 | 19 |
export GNOME_DISABLE_CRASH_DIALOG=1 |
| scottt@0 | 20 |
export KDE_DEBUG=1 |
| scottt@0 | 21 |
ulimit -c unlimited |
| scottt@0 | 22 |
|
| scottt@0 | 23 |
export MANSECT='0p:3p:1p:3:2:1:4:5:6:7:8:9:l'#:n #tcl |
| scottt@0 | 24 |
|
| scottt@0 | 25 |
[ -f $HOME/pyenv.env ] && source $HOME/pyenv.env |
| scottt@0 | 26 |
|
| scottt@0 | 27 |
# Source global definitions |
| scottt@0 | 28 |
if [ -f /etc/bashrc ]; then |
| scottt@0 | 29 |
. /etc/bashrc |
| scottt@0 | 30 |
fi |
| scottt@0 | 31 |
|
| scottt@0 | 32 |
# grep |
| scottt@0 | 33 |
alias egrep='egrep --color=tty -d skip' |
| scottt@0 | 34 |
alias egrpe='egrep --color=tty -d skip' |
| scottt@0 | 35 |
alias fgrep='fgrep --color=tty -d skip' |
| scottt@0 | 36 |
alias fgrpe='fgrep --color=tty -d skip' |
| scottt@0 | 37 |
alias grep='grep --color=tty -d skip' |
| scottt@0 | 38 |
alias grpe='grep --color=tty -d skip' |
| scottt@0 | 39 |
|
| scottt@0 | 40 |
# readline |
| scottt@0 | 41 |
export INPUTRC=$HOME/.inputrc |
| scottt@0 | 42 |
|
| scottt@0 | 43 |
# mercurial |
| scottt@0 | 44 |
#export HG=$(which hg) |
| scottt@0 | 45 |
#export TORTOISEHG_PATH=$HOME/work/tortoisehg/thg-hg-crew-tip |
| scottt@0 | 46 |
export TORTOISEHG_PATH=$HOME/work/tortoisehg/stable |
| scottt@0 | 47 |
|
| scottt@0 | 48 |
# bash completion |
| scottt@0 | 49 |
source /etc/bash_completion.d/mercurial.sh |
| scottt@0 | 50 |
|
| scottt@0 | 51 |
# pango default language to differentiate CJK |
| scottt@0 | 52 |
export PANGO_LANGUAGE=zh_TW |