zshrc: alias lsnewdir/lsolddir shows newest/oldest created 20 directories (10 .dirs)
authorBernhard Tittelbach <bernhard@tittelbach.org>
Wed, 9 Nov 2011 20:46:00 +0000 (21:46 +0100)
committerBernhard Tittelbach <bernhard@tittelbach.org>
Wed, 9 Nov 2011 20:46:00 +0000 (21:46 +0100)
doc/grmlzshrc.t2t
etc/zsh/zshrc

index 05a0275..f900a43 100644 (file)
@@ -1208,9 +1208,15 @@ Lists symbolic links in current directory.
 : **lsnew** (//ls -rl *(D.om[1,10])//)
 Displays the ten newest files (long output format).
 
+: **lsnewdir** (//ls -rthdl *(/om[1,10]) .*(D/om[1,10])//)
+Displays the ten newest directories and ten newest .directories.
+
 : **lsold** (//ls -rtlh *(D.om[1,10])//)
 Displays the ten oldest files (long output format).
 
+: **lsolddir** (//ls -rthdl *(/Om[1,10]) .*(D/Om[1,10])//)
+Displays the ten oldest directories and ten oldest .directories.
+
 : **lss** (//ls -l *(s,S,t)//)
 Lists files in current directory that have the setuid, setgid or sticky bit
 set.
index 6add6f2..79dbc84 100644 (file)
@@ -2554,6 +2554,10 @@ alias lsnew="ls -rtlh *(D.om[1,10])"   # display the newest files
 alias lsold="ls -rtlh *(D.Om[1,10])"   # display the oldest files
 #a2# Display the ten smallest files
 alias lssmall="ls -Srl *(.oL[1,10])"   # display the smallest files
+#a2# Display the ten newest directories and ten newest .directories
+alias lsnewdir="ls -rthdl *(/om[1,10]) .*(D/om[1,10])"
+#a2# Display the ten oldest directories and ten oldest .directories
+alias lsolddir="ls -rthdl *(/Om[1,10]) .*(D/Om[1,10])"
 
 # chmod
 #a2# Execute \kbd{chmod 600}