summaryrefslogtreecommitdiff
path: root/lib/functions.zsh
blob: d2dcadd0cb4d7235c8876556eb863140c315df12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function zsh_stats() {
  history | awk '{print $2}' | sort | uniq -c | sort -rn | head
}

function uninstall_oh_my_zsh() {
  /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/uninstall.sh
}

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

function take() {
  mkdir -p $1
  cd $1
}