blob: f1cad02f06b10495c133b404817a3afe80dccf3a (
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
|
if [[ $SHLVL -eq 1 || -n $DISPLAY ]]
then
if [[ -f $ZDOTDIR/zshenv.local ]]
then
. $ZDOTDIR/zshenv.local
fi
if [[ -f $ZDOTDIR/zshenv.private ]]
then
. $ZDOTDIR/zshenv.private
fi
ZPLUG_HOME=${ZPLUG_HOME:-~/projects/zplug}
if [[ -z $SSH_AUTH_SOCK ]]
then
export SSH_AUTH_SOCK=${XDG_RUNTIME_DIR:-/run/user/$UID}/ssh-agent
fi
case $OSTYPE in
darwin*)
os=darwin
;;
linux-gnu)
os=linux
;;
freebsd*)
os=freebsd
;;
*)
os=unknown
;;
esac
case $MACHTYPE in
*64)
arch=amd64
;;
*)
arch=386
;;
esac
fi
|