projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zshrc: rename new() to modified(), add an alias for backwards compatibility and add...
[grml-etc-core.git]
/
etc
/
zsh
/
zshrc
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
3f53ec3
..
b29bc37
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-3514,6
+3514,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 accessed within the last {\it n} days, {\it n} defaults to 1
+accessed() {
+ emulate -L zsh
+ print -l *(a-${1:-1})
+}
+
#f5# List files which have been changed within the last {\it n} days, {\it n} defaults to 1
changed() {
emulate -L zsh
#f5# List files which have been changed within the last {\it n} days, {\it n} defaults to 1
changed() {
emulate -L zsh
@@
-3521,10
+3527,12
@@
changed() {
}
#f5# List files which have been modified within the last {\it n} days, {\it n} defaults to 1
}
#f5# List files which have been modified within the last {\it n} days, {\it n} defaults to 1
-
new
() {
+
modified
() {
emulate -L zsh
print -l *(m-${1:-1})
}
emulate -L zsh
print -l *(m-${1:-1})
}
+# modified() was named new() in earlier versions, add an alias for backwards compatibility
+which new >/dev/null || alias new=modified
#f5# Grep in history
greph() {
#f5# Grep in history
greph() {