2009-09-01 06:00:15 +08:00
|
|
|
function zsh_stats() {
|
2012-11-14 19:09:13 +08:00
|
|
|
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20
|
2009-09-01 06:00:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function uninstall_oh_my_zsh() {
|
2011-12-11 22:57:35 +08:00
|
|
|
/usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/uninstall.sh
|
2009-09-01 06:09:34 +08:00
|
|
|
}
|
|
|
|
|
2009-09-01 06:48:09 +08:00
|
|
|
function upgrade_oh_my_zsh() {
|
2011-12-11 22:57:35 +08:00
|
|
|
/usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
|
2009-09-01 06:48:09 +08:00
|
|
|
}
|
|
|
|
|
2009-08-31 21:03:56 +08:00
|
|
|
function take() {
|
|
|
|
mkdir -p $1
|
|
|
|
cd $1
|
|
|
|
}
|
2010-12-25 06:20:57 +08:00
|
|
|
|