summaryrefslogtreecommitdiff
path: root/etc/rc
blob: 65d9cfa8e16ab9b43eaa5154593083a8debd4ea6 (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
## vim:ft=zsh
## zshrc
## Daniel Friesel <derf@derf.homelinux.org>
## 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 'non-linux:'='[[ $uname = Linux ]] ||'
alias 'openbsd:'='[[ $uname = OpenBSD ]] &&'

## include the actual config
source $ZDIR/options
source $ZDIR/parameters
source $ZDIR/unicode
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
xsource $ZDIR/../provided/includes
xsource $ZDIR/local
xsource $HOME/var/tmp/envstore-raw-$UID
source $ZDIR/completion

## misc
bindkey -e
check_com -c dircolors && eval $(dircolors -b $HOME/packages/zsh/etc/dircolors)
mesg n
umask 077

## cleanup
unalias 'linux:'
unalias 'non-linux:'
unalias 'openbsd:'
unfunction check_com
unfunction xexport
unfunction xsource
unset uname