summaryrefslogtreecommitdiff
path: root/etc/profile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-02-26 21:33:53 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-02-26 21:33:53 +0100
commitdd68dbf20956a7005a47682b3992450004298e71 (patch)
tree47b491b1135eda4ab7f0ed036c2b5cc480ab84e5 /etc/profile
parentbd39006f6eb8b3ac45f77d27d631a7ed17b8f2d6 (diff)
zprofile: Use zlogin...
Diffstat (limited to 'etc/profile')
-rw-r--r--etc/profile20
1 files changed, 5 insertions, 15 deletions
diff --git a/etc/profile b/etc/profile
index 823ffb0..23994c3 100644
--- a/etc/profile
+++ b/etc/profile
@@ -1,16 +1,6 @@
## vim:ft=zsh
-
-# a part of this file uses functions loaded by the zshrc, which is parsed
-# after zprofile by default. So, at the end of the zshrc, zprofile is sourced
-# again and the section after the else is executed
-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 {
- check_com -c todo && [[ -r ~/var/gtd/todo ]] && gtd-todo
- check_com -c calendar && [[ -r ~/stuff/calendar ]] && calendar
- unset ZPROFILE
-}
+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