summaryrefslogtreecommitdiff
path: root/etc/profile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-12-13 16:52:22 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-12-13 16:52:22 +0100
commit32e45951ebf6fb767d64e589058177daf1bc6c55 (patch)
treec54e7ae5057b3ae8c1a03a0e1d9b07c44e5dff4a /etc/profile
parent82b0032d2d5ba7f737b3e27861741aaf287af10a (diff)
Show todo and calendar in zprofile
Diffstat (limited to 'etc/profile')
-rw-r--r--etc/profile15
1 files changed, 11 insertions, 4 deletions
diff --git a/etc/profile b/etc/profile
index 3273b3e..cf8495b 100644
--- a/etc/profile
+++ b/etc/profile
@@ -1,5 +1,12 @@
## vim:ft=zsh
-source $HOME/packages/zsh/etc/colors
-print -P "${info}>>${reset} this is ${info}`uname -srm`${reset} on ${info}%y${reset}"
-[[ -n $(echo Maildir/new/*(N)) ]] && echo "${info}>>${reset} You have mail!"
-[[ -r $HOME/packages/zsh/etc/local-profile ]] && source $HOME/packages/zsh/etc/local-profile
+if (( ZPROFILE == 0 )) {
+ source $HOME/packages/zsh/etc/colors
+ print -P "${info}>>${reset} this is ${info}`uname -srm`${reset} on ${info}%y${reset}"
+ [[ -n $(echo Maildir/new/*(N)) ]] && echo "${info}>>${reset} You have mail!"
+ [[ -r $HOME/packages/zsh/etc/local-profile ]] && source $HOME/packages/zsh/etc/local-profile
+ ZPROFILE=1
+} else {
+ gtd-todo
+ calendar
+ unset ZPROFILE
+}