diff options
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -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 |