summaryrefslogtreecommitdiff
path: root/etc/rc
blob: 420d2401b2f74c5757332cf4f2cc157d5d135e9c (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
## vim:ft=zsh

## mostly internal stuff
ZDIR=$HOME/packages/zsh/etc
uname=$(uname)
debian=$([ -f /proc/version ] && fgrep Debian /proc/version)
alias 'linux:'='[ $uname = Linux ] &&'
alias 'non-linux:'='[ $uname = Linux ] ||'
alias 'ls-colors:'='which dircolors &> /dev/null &&'
alias 'openbsd:'='[ $uname = OpenBSD ] &&'
alias 'debian:'='[ -n "$debian" ] &&'

## include the actual config
source $ZDIR/modules
source $ZDIR/variables
source $ZDIR/colors
source $ZDIR/functions
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
source $ZDIR/completion

## misc
bindkey -e # EMACS bindings
ls-colors: eval $(dircolors -b $HOME/packages/zsh/etc/dircolors)
[ -r /tmp/envstore-raw-$UID ] && . /tmp/envstore-raw-$UID
mesg n
umask 077

## cleanup
unalias 'linux:'
unalias 'non-linux:'
unalias 'ls-colors:'
unalias 'openbsd:'
unalias 'debian:'
unset uname