summaryrefslogtreecommitdiff
path: root/net:sweethome/Aliases.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-05-22 17:05:37 +0200
committerHugues Hiegel <hugues@hiegel.fr>2008-05-22 17:05:37 +0200
commita7ab0284ca57ccdc723afb3739380f48be60338c (patch)
tree58b81773bce201ef4c301dceb1c147cca9467c40 /net:sweethome/Aliases.zsh
parent8f03ff3021cf7be147ad1f85441240bb68aa4c6a (diff)
Sweethome !
Diffstat (limited to 'net:sweethome/Aliases.zsh')
-rw-r--r--net:sweethome/Aliases.zsh17
1 files changed, 17 insertions, 0 deletions
diff --git a/net:sweethome/Aliases.zsh b/net:sweethome/Aliases.zsh
new file mode 100644
index 0000000..b82b99c
--- /dev/null
+++ b/net:sweethome/Aliases.zsh
@@ -0,0 +1,17 @@
+#!/bin/zsh
+##
+## Part of configuration files for Zsh 4
+## by Hugues Hiegel <hugues@hiegel.fr>
+##
+## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS
+##
+## You are encouraged to use, modify, and redistribute
+## these files with or without this notice.
+##
+
+## Paranoid specifics aliases
+
+#cmd_exists mailstat && a maillogs='mailstat -mo ~/.procmail/procmail.log | cut -c8- | sed "s:^[0-9]*::"'
+#cmd_exists mailstat && a mailstats='echo ; echo "\tToday" ; awk < ~/.procmail/procmail.log{,.old} "BEGIN {RS=\"From\"} /`LC_ALL=C date "+%a %b %d ..:..:.. %Y"`/ { print \"From \"\$0 }" | grep -v "^$" | mailstat | cut -c8- | sed "s:^[0-9]*::"'
+#cmd_exists mailstat && a mails='mailstat -km ~/.procmail/procmail.log | sed "s/^No mail.*/ No mail/" | cut -c8- | sed "s:^[0-9]*::" | egrep -v "## .*:" ; cat ~/.procmail/procmail.log >> ~/.procmail/procmail.log.old ; :> ~/.procmail/procmail.log'
+cmd_exists mutt && a junkmail='[ -f ~/Mail/junk.gz ] && mutt -f ~/Mail/junk.gz'