-
Notifications
You must be signed in to change notification settings - Fork 0
/
zprofile
35 lines (29 loc) · 829 Bytes
/
zprofile
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
#########################################
# Executes commands at login, pre-zshrc.
#########################################
# Load private ZSH settings
xsource "$HOME/.zprivate"
# support colors in ls
[ -f /etc/DIR_COLORS ] && eval $(dircolors -b /etc/DIR_COLORS)
export ZLSCOLORS="${LS_COLORS}"
# support colors in less
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
# locale setup
xsource "/etc/default/locale"
if [[ -z "$LC_ALL" ]]; then
export LC_ALL="$LANG"
fi
# set TZ to timezone
TZ=$(xcat /etc/timezone)
# set default shell to zsh
export SHELL='/bin/zsh'
# Browser
if ((xdarwin)); then
export BROWSER='open'
fi