aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-05-08 02:58:33 +0200
committerDavid Runge <dave@sleepmap.de>2016-05-08 02:58:33 +0200
commit00c54a6e6f21dca4487041cf8106df23adcd43be (patch)
tree1467bf5a2447f5b7bfeca16b046e30cc6358a5a3
parent32b96eeafdfa7acc005e9119f2f88d14f6e45582 (diff)
downloaddotfiles-00c54a6e6f21dca4487041cf8106df23adcd43be.tar.gz
dotfiles-00c54a6e6f21dca4487041cf8106df23adcd43be.tar.bz2
dotfiles-00c54a6e6f21dca4487041cf8106df23adcd43be.tar.xz
dotfiles-00c54a6e6f21dca4487041cf8106df23adcd43be.zip
.zsh.after/aliases.zsh: Adding alias for zsh history statistics and dir overview.
-rw-r--r--.zsh.after/aliases.zsh8
1 files changed, 8 insertions, 0 deletions
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'