blob: 0381cb2e3ba617004c1225fcc6da5f8aa43160e0 (
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
53
54
55
56
57
58
59
60
61
|
## 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 'ls-colors:'='which dircolors &> /dev/null &&'
alias 'openbsd:'='[[ $uname = OpenBSD ]] &&'
ret=0
## include the actual config
echo "options"
source $ZDIR/options
echo "parameters"
source $ZDIR/parameters
echo "unicode"
source $ZDIR/unicode
echo "functions"
source $ZDIR/function
echo "colorc"
source $ZDIR/colors
echo "prompt"
source $ZDIR/prompt
echo "directories"
source $ZDIR/directories
echo "keys"
source $ZDIR/keys
echo "aliases"
source $ZDIR/alias/suffix
source $ZDIR/alias/font
source $ZDIR/alias/default
source $ZDIR/alias/global
source $ZDIR/alias/short
echo "includes"
xsource $ZDIR/../provided/includes
echo "local"
xsource $ZDIR/local
xsource $HOME/var/tmp/envstore-raw-$UID
echo "completion"
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:'
unfunction xexport
unfunction xsource
unset uname
(( ret )) || clear
unset ret
|