## vim:ft=zsh ## Copyright (c) 2008, 2009 by Daniel Friesel ## 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/ # 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${info}--${reset} $*" } function zrc_info { echo "${info}--${reset} $*" } # include the actual config source $ZDIR/options source $ZDIR/colors source $ZDIR/parameters source $ZDIR/function source $ZDIR/zle source $ZDIR/prompt source $ZDIR/directories source $ZDIR/keys source $ZDIR/alias zrc_status "includes" source $ZDIR/../provided/includes xsource $ZDIR/local # local configuration, not in git 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