From c5743df23827548f147983d841f040a02d5ba60d Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Wed, 30 Nov 2011 21:58:09 +0100 Subject: [PATCH] zshrc: Move `top10' alias to skel/.zshrc Signed-off-by: Frank Terbeck --- doc/grmlzshrc.t2t | 3 --- etc/skel/.zshrc | 3 +++ etc/zsh/zshrc | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/doc/grmlzshrc.t2t b/doc/grmlzshrc.t2t index 98ad496..ec9d659 100644 --- a/doc/grmlzshrc.t2t +++ b/doc/grmlzshrc.t2t @@ -909,9 +909,6 @@ http://www.cl.cam.ac.uk/~mgk25/unicode.html#term). : **tlog** (//tail -f /var/log/syslog//) Prints syslog continuously (See tail(1)). -: **top10** (//print -l ? ${(o)history%% *} | uniq -c | sort -nr | head -n 10//) -Prints the ten most used shell commands. - : **truec** (//truecrypt [ mount options ]//) Mount a truecrypt volume with some reasonable mount options ("rw,sync,dirsync,users,uid=1000,gid=users,umask=077" and "utf8", if diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index 8e1b025..22f7e5e 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -175,6 +175,9 @@ fi #alias -g T='|tail' #alias -g V='| vim -' +## get top 10 shell commands: +#alias top10='print -l ${(o)history%% *} | uniq -c | sort -nr | head -n 10' + ## miscellaneous code ## ## Use a default width of 80 for manpages for more convenient reading diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index e0e84e6..94373e1 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1470,9 +1470,6 @@ if ! check_com asc &>/dev/null ; then compdef asc=ssh fi -# get top 10 shell commands: -alias top10='print -l ${(o)history%% *} | uniq -c | sort -nr | head -n 10' - # truecrypt; use e.g. via 'truec /dev/ice /mnt/ice' or 'truec -i' if check_com -c truecrypt ; then if isutfenv ; then -- 2.1.4