-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshenv
43 lines (34 loc) · 934 Bytes
/
.zshenv
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
# Language
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# XDG
if [[ -z "$XDG_CONFIG_HOME" ]]; then
export XDG_CONFIG_HOME="$HOME"/Library/Preferences
fi
if [[ -z "$XDG_CACHE_HOME" ]]; then
export XDG_CACHE_HOME="$HOME"/Library/Caches
fi
if [[ -z "$XDG_DATA_HOME" ]]; then
export XDG_DATA_HOME="$HOME"/Library/Application\ Support
fi
if [[ -z "$XDG_STATE_HOME" ]]; then
export XDG_STATE_HOME="$HOME"/Library/Application\ Support
fi
if [[ -z "$XDG_DATA_DIRS" ]]; then
export XDG_DATA_DIRS=/usr/local/share:/usr/share
fi
if [[ -z "$XDG_CONFIG_DIRS" ]]; then
export XDG_CONFIG_DIRS=/Library/Preferences
else
export XDG_CONFIG_DIRS=/Library/Preferences:"$XDG_CONFIG_DIRS"
fi
# Zsh
export ZDOTDIR="$XDG_CONFIG_HOME"/zsh
# PAGER
export PAGER=less
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
# Default Editor
export EDITOR='nvim'
export VISUAL='nvim'