summaryrefslogtreecommitdiff
path: root/etc/rc
blob: d8c86506eac009b404285d0ffd0e18ba3da10c56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
## vim:ft=zsh
## Written 2008 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/

## 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/function
source $ZDIR/zle
source $ZDIR/colors
source $ZDIR/prompt
source $ZDIR/directories
source $ZDIR/keys
source $ZDIR/alias/suffix
source $ZDIR/alias/font
source $ZDIR/alias/default
source $ZDIR/alias/global
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
check_com -c dircolors && eval $(dircolors -b $HOME/packages/zsh/etc/dircolors)
mesg n
umask 077
chpwd

## cleanup
unalias 'linux:'
unalias 'openbsd:'
unfunction check_com
unfunction xexport
unfunction xsource
unset system distro
unset ps_fail ps_green ps_info ps_red ps_reset ps_yellow