1 # enable programmable completion features (you don't need to enable
2 # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
3 # sources /etc/bash.bashrc).
4 if [ -f /etc/bash_completion ]; then
8 umask 022 # create new file with '644'
9 ulimit -c 0 # no dump core
11 export LESS='-FRX -i -P ?f%f:(stdin). ?lb%lb?L/%L.. [?eEOF:?pb%pb\%..]'
16 set -o notify # notify end of background job immediately
18 shopt -s histappend # append command history instead of overwrite
19 shopt -s checkhash # check always PATH hash table
20 shopt -s cmdhist # save multi lines command to one line
21 shopt -s no_empty_cmd_completion # no complementation with no input
22 shopt -s histverify # check command history before execute
25 # view last 30 history or search from last 1000 history
27 if [ "$1" ]; then history 1000 | grep "$@"; else history 30; fi
30 # view last 30 history or search from all history
32 if [ "$1" ]; then history | grep "$@"; else history 30; fi
35 if [ -f $BASH_COMPLETION_DIR/git -o -f $BASH_COMPLETION_COMPAT_DIR/git ]; then
36 export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1)\$ '
38 export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
41 if [ -d $HOME/bin -a `echo $PATH | grep -c $HOME/bin` -eq 0 ]; then
42 export PATH=$PATH:$HOME/bin
46 svn st $@ | grep "^[^?]"
50 cmp -l "$@" | awk '{printf "%08X %02X %02X\n", $1-1, strtonum(0$2), strtonum(0$3)}'
56 alias screen='screen -U -R'