From 1feae14e8b54a5120b2e7b8056120c25447b2f6e Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 29 Sep 2023 21:38:49 +0200 Subject: [PATCH] Alias to filter mailq by date --- zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zshrc b/zshrc index 7d93db6..dfbfbe4 100644 --- a/zshrc +++ b/zshrc @@ -132,6 +132,7 @@ alias mane="LANG=C man " # Afficher les lignes trop longues sur la ligne suivante plutot que de remplacer par un "$": alias most='most -w' +## System # APT|Aptitude|… commands {{{ if [ -d /etc/apt ]; then alias acle='sudo aptitude clean' @@ -187,6 +188,9 @@ if command -v yay > /dev/null; then fi # }}} +# Filter pending mail by date +alias maildate='sudo mailq |grep "^[A-F0-9]" |sort -k5n -k6n' + # Grep aliases {{{ alias grep='grep --color=always --ignore-case ' alias gerp='grep --ignore-case'