Merge remote-tracking branch 'origin/xro/lsnewolddir'
authorFrank Terbeck <ft@bewatermyfriend.org>
Tue, 6 Dec 2011 15:53:35 +0000 (16:53 +0100)
committerFrank Terbeck <ft@bewatermyfriend.org>
Tue, 6 Dec 2011 15:53:35 +0000 (16:53 +0100)
doc/grmlzshrc.t2t
etc/zsh/zshrc

index 22d4de2..d39ad1c 100644 (file)
@@ -824,9 +824,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 00cf7fe..3fa6c5b 100644 (file)
@@ -2279,6 +2279,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])"
 
 # some useful aliases
 #a2# Remove current empty directory. Execute \kbd{cd ..; rmdir $OLDCWD}