]> git.rmz.io Git - dotfiles.git/blob - zsh/lib/functions.zsh
Squashed commit of the following + cleanup afterwards:
[dotfiles.git] / zsh / lib / functions.zsh
1 function zsh_stats() {
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
3 }
4
5 function uninstall_oh_my_zsh() {
6 /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/uninstall.sh
7 }
8
9 function upgrade_oh_my_zsh() {
10 /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
11 }
12
13 function take() {
14 mkdir -p $1
15 cd $1
16 }
17