zshrc: add function changed()
authorCarsten Hey <carsten@debian.org>
Sun, 14 Mar 2010 23:04:24 +0000 (00:04 +0100)
committerFrank Terbeck <ft@bewatermyfriend.org>
Sun, 14 Mar 2010 23:49:58 +0000 (00:49 +0100)
Signed-off-by: Carsten Hey <carsten@debian.org>
doc/grmlzshrc.t2t
etc/zsh/zshrc

index a1f6195..1837a98 100644 (file)
@@ -456,6 +456,10 @@ If the original cdrecord is not installed, issues a warning to the user to
 use the wodim binary instead. Wodim is the debian fork of Joerg Schillings
 cdrecord.
 
 use the wodim binary instead. Wodim is the debian fork of Joerg Schillings
 cdrecord.
 
+: **changed()**
+Lists files in current directory, which have been changed within the
+last N days. N is an integer required as first and only argument.
+
 : **check_com()**
 Returns true if given command exists either as program, function, alias,
 builtin or reserved word. If the option -c is given, only returns true,
 : **check_com()**
 Returns true if given command exists either as program, function, alias,
 builtin or reserved word. If the option -c is given, only returns true,
index efc2bc8..04645d7 100644 (file)
@@ -3496,6 +3496,12 @@ regcheck() {
     pcre_match $2 && echo "regex matches" || echo "regex does not match"
 }
 
     pcre_match $2 && echo "regex matches" || echo "regex does not match"
 }
 
+#f5# List files which have been changed within the last {\it n} days
+changed() {
+    emulate -L zsh
+    print -l *(c-$1)
+}
+
 #f5# List files which have been modified within the last {\it n} days
 new() {
     emulate -L zsh
 #f5# List files which have been modified within the last {\it n} days
 new() {
     emulate -L zsh