summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-22 10:57:53 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-22 10:57:53 +0100
commit8a6d0b76391dbec475293833d09b398ddad84e9a (patch)
tree916b2d1273f5f480ba7708c1632f8b2b48566171 /etc/rc
parent3aa9e5592a0f44c05f60313fdca62328900f7ea5 (diff)
zshrc: Do nothing except including files
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc35
1 files changed, 4 insertions, 31 deletions
diff --git a/etc/rc b/etc/rc
index 266ee41..ef705b6 100644
--- a/etc/rc
+++ b/etc/rc
@@ -6,22 +6,8 @@
## https://derf.homelinux.org/~derf/dotfiles/zsh/rc
## see also: https://derf.homelinux.org/~derf/dotfiles/zsh/
-# for system-specific setup
-system=${$(uname):l}
-alias 'linux:'='[[ $system == linux ]] &&'
-alias 'openbsd:'='[[ $system == openbsd ]] &&'
-if [[ $system == linux ]] {
- [[ -f /etc/debian_version ]] && distro=debian
-}
-
-function zrc_status {
- echo -n "\r\e[2K\e[0;36m--\e[0m $*"
-}
-function zrc_info {
- echo "\e[0;36m--\e[0m $*"
-}
-
-# include the actual config
+source $ZDIR/osdetect
+source $ZDIR/rc_status
source $ZDIR/options
source $ZDIR/parameters
source $ZDIR/function
@@ -30,6 +16,7 @@ source $ZDIR/prompt
source $ZDIR/directories
source $ZDIR/keys
source $ZDIR/alias
+source $ZDIR/misc
zrc_status "includes"
source $ZDIR/../provided/includes
@@ -38,18 +25,4 @@ xsource $HOME/var/tmp/envstore-raw-$UID # envstore
xsource $ZDIR/hosts/$HOST # local configuration in git
source $ZDIR/completion
-
-# misc
-check_com -c dircolors && eval $(dircolors -b $ZDIR/dircolors)
-mesg n
-umask 077
-chpwd
-
-# cleanup
-echo -n "\r\e[2K"
-unalias 'linux:'
-unalias 'openbsd:'
-unfunction zrc_status zrc_info
-unfunction xexport xsource
-unset system distro
-unset ps_fail ps_green ps_info ps_red ps_reset ps_yellow
+source $ZDIR/cleanup