summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc18
1 files changed, 10 insertions, 8 deletions
diff --git a/etc/rc b/etc/rc
index 7d827de..087d137 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,20 +1,22 @@
## vim:ft=zsh
-## Written 2008 by Daniel Friesel <derf@derf.homelinux.org>
+## Copyright (c) 2008, 2009 by Daniel Friesel <derf@derf.homelinux.org>
## Unless otherwise noted, this Licence applies to all files sourced here:
## 0. You just DO WHAT THE FUCK YOU WANT TO.
##
## https://derf.homelinux.org/~derf/dotfiles/zsh/rc
## see also: https://derf.homelinux.org/~derf/dotfiles/zsh/
-## mostly internal stuff
-uname=$(uname)
-alias 'linux:'='[[ $uname = Linux ]] &&'
-alias 'openbsd:'='[[ $uname = OpenBSD ]] &&'
+## What are we running on?
+system=${$(uname):l}
+alias 'linux:'='[[ $system == linux ]] &&'
+alias 'openbsd:'='[[ $system == openbsd ]] &&'
+if [[ $system == linux ]] {
+ [[ -f /etc/debian_version ]] && distro=debian
+}
## include the actual config
source $ZDIR/options
source $ZDIR/parameters
-source $ZDIR/unicode
source $ZDIR/function
source $ZDIR/zle
source $ZDIR/colors
@@ -29,12 +31,12 @@ source $ZDIR/alias/short
source $ZDIR/../provided/includes
xsource $ZDIR/local
xsource $HOME/var/tmp/envstore-raw-$UID
+xsource $ZDIR/hosts/$HOST
source $ZDIR/completion
(( ZPROFILE )) && source $ZDIR/profile
## misc
-bindkey -e
check_com -c dircolors && eval $(dircolors -b $HOME/packages/zsh/etc/dircolors)
mesg n
umask 077
@@ -46,5 +48,5 @@ unalias 'openbsd:'
unfunction check_com
unfunction xexport
unfunction xsource
-unset uname
+unset system distro
unset ps_fail ps_green ps_info ps_red ps_reset ps_yellow