From 32e45951ebf6fb767d64e589058177daf1bc6c55 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 13 Dec 2008 16:52:22 +0100 Subject: Show todo and calendar in zprofile --- etc/profile | 15 +++++++++++---- etc/rc | 2 ++ 2 files changed, 13 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 +} diff --git a/etc/rc b/etc/rc index fd74c45..f29a547 100644 --- a/etc/rc +++ b/etc/rc @@ -31,6 +31,8 @@ xsource $ZDIR/local xsource $HOME/var/tmp/envstore-raw-$UID source $ZDIR/completion +(( ZPROFILE )) && source $ZDIR/profile + ## misc bindkey -e check_com -c dircolors && eval $(dircolors -b $HOME/packages/zsh/etc/dircolors) -- cgit v1.2.3