X-Git-Url: http://lab.mitty.jp/git/?a=blobdiff_plain;f=TipAndDoc%2F.bashrc;h=298d439e847f2208178bc5c01250e535da6aa050;hb=d3973efc38bc7426eec6cbf151192ddc1fb93064;hp=33a26e3fbffb824f0f95e3f252215eed4e495497;hpb=b949a0f80b773a49f5029132c716ce019507e3bd;p=lab.git diff --git a/TipAndDoc/.bashrc b/TipAndDoc/.bashrc index 33a26e3..298d439 100644 --- a/TipAndDoc/.bashrc +++ b/TipAndDoc/.bashrc @@ -32,12 +32,23 @@ function I { if [ "$1" ]; then history | grep "$@"; else history 30; fi } -if [ -f $BASH_COMPLETION_DIR/git ]; then +if [ -f $BASH_COMPLETION_DIR/git -o -f $BASH_COMPLETION_COMPAT_DIR/git ]; then export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1)\$ ' else export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi +function svnst { + svn st $@ | grep "^[^?]" +} + +function hexcmp { + cmp -l "$@" | awk '{printf "%08X %02X %02X\n", $1-1, strtonum(0$2), strtonum(0$3)}' +} + alias vi='vim' alias sudo='sudo -H ' alias rm='rm -v' +alias screen='screen -U -R' +alias mv='mv -i' +alias cp='cp -i'