diff --git a/.oh-my-zsh/custom/aliases.zsh b/.oh-my-zsh/custom/aliases.zsh index dfda189..2881a2c 100644 --- a/.oh-my-zsh/custom/aliases.zsh +++ b/.oh-my-zsh/custom/aliases.zsh @@ -6,11 +6,12 @@ alias mkvenv="python3 -m venv .venv && source .venv/bin/activate" alias gcd='git checkout development' alias here=gnome-terminal alias sgrep='grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS,.venv} ' +alias save='gca && gp' -function commands() { +function _commands() { awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' } -alias topten="history | commands | sort -rn | head" +alias topten="history | _commands | sort -rn | head" function _show_answers() { for f in *; do