-
Notifications
You must be signed in to change notification settings - Fork 0
/
05-init.zsh
71 lines (58 loc) · 1.52 KB
/
05-init.zsh
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
62
63
64
65
66
67
68
69
70
71
# Always load this file first.
# This function helps checking features against versions.
autoload -U is-at-least
# Too bad I have to put this function over here.
cleanpath()
{
print "$^@"(N)
}
# Paths
path=(
~/.local/bin
~/.cargo/bin
/usr/local/{s,}bin
/usr/{s,}bin
/{s,}bin
/opt/puppetlabs/{s,}bin
# ~/music/.bin
)
manpath=(
/usr/man
/usr/share/man
/usr/local/man
/usr/local/share/man
)
path=($(cleanpath $path))
manpath=($(cleanpath $manpath))
export path manpath
# If your home is writable.
if [[ -w ~ ]]; then
export TMP=~/.local/tmp
export TMPDIR=$TMP
mkdir -p -m700 $TMP/emacs$UID
mkdir -p -m700 ~/.ssh
chmod -R go-rwx $TMP ~/.ssh
fi
local HOST=$(LC_ALL=C uname -n)
# export NULLCMD=:
export PERL_BADLANG=0
#unset LC_ALL
export LANG=en_US.UTF-8
export LC_TIME=en_GB.UTF-8
#export LC_COLLATE=C
#export LC_ALL
export TZ=Europe/Vienna
# See this thread: https://www.zsh.org/mla/workers/2022/msg00814.html
export RSYNC_OLD_ARGS=1
# Only set this variable if running in X
[ "$XAUTHORITY" ] && export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd'
unset WORDCHARS
# Don't wanna know I got new mail :P
unset mailpath MAILCHECK
# If you don't like what is set here, I recommend you edit ~/.zlocal
export GIT_AUTHOR_NAME="${GIT_AUTHOR_NAME:-$(getent passwd $USER|awk -F : '{print $5}')}"
export GIT_AUTHOR_EMAIL="${GIT_AUTHOR_EMAIL:-$USER@$DOMAIN}"
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
# For CVS
export CVS_RSH=ssh