From 96e953dc4fd26a05ad8811bf44a54bdf38edd968 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Tue, 29 Jun 2010 11:07:26 +0200 Subject: [PATCH] zshrc: Amending the previous patches slightly * Using our `check_com' function instead of `which' * Make sure `print' doesn't crap its pants for files named "-*" Signed-off-by: Frank Terbeck --- etc/zsh/zshrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index b29bc37..577c63f 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3517,22 +3517,22 @@ regcheck() { #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}) + 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 - print -l *(c-${1:-1}) + print -l -- *(c-${1:-1}) } #f5# List files which have been modified within the last {\it n} days, {\it n} defaults to 1 modified() { emulate -L zsh - print -l *(m-${1:-1}) + 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 +check_com new || alias new=modified #f5# Grep in history greph() { -- 2.1.4