X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=cd1a220083a0765a02cccb36036c2d49147acb56;hb=5d0b338555c8eadf95e54c41aeca4cccb9779384;hp=04645d73d0b9ff88d52ea0f1c3deef685ed3ca5a;hpb=16e9ec67e0c4dbe11464ffc13a49f82bddabfa9e;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 04645d7..cd1a220 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2149,7 +2149,11 @@ if check_com -c screen ; then elif [[ -r $HOME/.screenrc ]] ; then alias screen="${commands[screen]} -c $HOME/.screenrc" else - [[ -r /etc/grml/screenrc_grml ]] && alias screen="${commands[screen]} -c /etc/grml/screenrc_grml" + if [[ -r /etc/grml/screenrc_grml ]]; then + alias screen="${commands[screen]} -c /etc/grml/screenrc_grml" + else + [[ -r /etc/grml/screenrc ]] && alias screen="${commands[screen]} -c /etc/grml/screenrc" + fi fi fi @@ -3496,16 +3500,16 @@ regcheck() { pcre_match $2 && echo "regex matches" || echo "regex does not match" } -#f5# List files which have been changed within the last {\it n} days +#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) + print -l *(c-${1:1}) } -#f5# List files which have been modified within the last {\it n} days +#f5# List files which have been modified within the last {\it n} days, {\it n} defaults to 1 new() { emulate -L zsh - print -l *(m-$1) + print -l *(m-${1:1}) } #f5# Grep in history