From 30bd0d4eb51a13c9b416212fdbded738fce07d2d Mon Sep 17 00:00:00 2001 From: Fedor Lyanguzov Date: Thu, 21 Jun 2018 12:20:42 +0300 Subject: [PATCH] 21.06.2018 --- .oh-my-zsh/custom/aliases.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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