From 00c54a6e6f21dca4487041cf8106df23adcd43be Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 8 May 2016 02:58:33 +0200 Subject: .zsh.after/aliases.zsh: Adding alias for zsh history statistics and dir overview. --- .zsh.after/aliases.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.zsh.after/aliases.zsh b/.zsh.after/aliases.zsh index 6c0395f..789e2cb 100644 --- a/.zsh.after/aliases.zsh +++ b/.zsh.after/aliases.zsh @@ -29,6 +29,14 @@ alias lla='ls -lA' alias lsfw='ls -lah /dev|grep fw' alias lsvid='ls -lah /dev|grep video' +#zsh + +# Lists the ten most used commands. +alias history-stat="history 0 | awk '{print \$2}' | sort | uniq -c | sort -n -r | head" + +alias d='dirs -v' +for index ({1..9}) alias "$index"="cd +${index}"; unset index + #MPLAYER alias mplayer='mplayer -ao jack,pulse,alsa' -- cgit v1.2.3-70-g09d2