projects
/
lab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* memo for 8th Kernel/VM expedition
[lab.git]
/
TipAndDoc
/
.bashrc
diff --git
a/TipAndDoc/.bashrc
b/TipAndDoc/.bashrc
index
0ac605b
..
298d439
100644
(file)
--- a/
TipAndDoc/.bashrc
+++ b/
TipAndDoc/.bashrc
@@
-32,7
+32,7
@@
function I {
if [ "$1" ]; then history | grep "$@"; else history 30; fi
}
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\$ '
export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1)\$ '
else
export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
@@
-42,6
+42,13
@@
function svnst {
svn st $@ | grep "^[^?]"
}
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 vi='vim'
alias sudo='sudo -H '
alias rm='rm -v'
+alias screen='screen -U -R'
+alias mv='mv -i'
+alias cp='cp -i'