summaryrefslogtreecommitdiff
path: root/etc/rc
blob: fd74c455e70cf5f530ace47190c7754e806df777 (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
## 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/

## mostly internal stuff
uname=$(uname)
alias '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
chpwd

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