## vim:ft=zsh ## zshrc ## Daniel Friesel ## https://derf.homelinux.org/~derf/dotfiles/zsh/rc ## see also: https://derf.homelinux.org/~derf/dotfiles/zsh/ ## mostly internal stuff ZDIR=$HOME/packages/zsh/etc uname=$(uname) alias 'linux:'='[[ $uname = Linux ]] &&' alias 'non-linux:'='[[ $uname = Linux ]] ||' alias 'ls-colors:'='which dircolors &> /dev/null &&' alias 'openbsd:'='[[ $uname = OpenBSD ]] &&' ## include the actual config source $ZDIR/modules source $ZDIR/parameters source $ZDIR/colors source $ZDIR/function source $ZDIR/options source $ZDIR/prompt source $ZDIR/directories source $ZDIR/alias/suffix source $ZDIR/alias/font source $ZDIR/alias/default source $ZDIR/alias/global source $ZDIR/alias/short xsource $ZDIR/../provided/includes xsource $ZDIR/local xsource $HOME/var/tmp/envstore-raw-$UID source $ZDIR/completion ## misc bindkey -e ls-colors: eval $(dircolors -b $HOME/packages/zsh/etc/dircolors) mesg n umask 077 ## cleanup unalias 'linux:' unalias 'non-linux:' unalias 'ls-colors:' unalias 'openbsd:' unset uname