functions.zsh 417 Bytes
Newer Older
1
function zsh_stats() {
CHH's avatar
CHH committed
2
  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
Robby Russell's avatar
Robby Russell committed
3
4
5
}

function uninstall_oh_my_zsh() {
6
  /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/uninstall.sh
Robby Russell's avatar
Robby Russell committed
7
8
}

9
function upgrade_oh_my_zsh() {
10
  /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
11
12
}

Geoff Garside's avatar
Geoff Garside committed
13
14
15
16
function take() {
  mkdir -p $1
  cd $1
}
17