-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshenv.tmpl
50 lines (37 loc) · 1.1 KB
/
dot_zshenv.tmpl
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
function source_if_exists {
[[ -f $1 ]] && builtin source $1
}
function source_if_exists_outside_emacs {
[[ -f $1 ]] && [[ -z "$INSIDE_EMACS" ]] && builtin source $1
}
export TZ="Asia/Shanghai"
export EMAIL={{ .email | quote }}
export HOST_TYPE={{ .hosttype | quote }}
# XDG
export XDG_CONFIG_HOME="$HOME/.config"
# Android
export ANDROID_HOME=$HOME/Library/Android/sdk
export ANDROID_SDK_ROOT=$ANDROID_HOME
export PATH="$ANDROID_HOME/build-tools/33.0.0/:$PATH"
# Beancount
export BEANCOUNT_FILE="$HOME/org/beancount/ledger.beancount"
export FAVA_PORT=8888
# Doom
export PATH="$HOME/.config/emacs/bin:$PATH"
# HASS
export HASS_SERVER=http://homeassistant.local:8123
# Jira
export JIRA_URL="https://aaecosystem.atlassian.net"
# Bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# plum
export PLUM_DIR="$HOME/.plum"
export PATH=$PLUM_DIR:$PATH
# Poetry
export POETRY_CONFIG_DIR="$XDG_CONFIG_HOME/pypoetry"
# VCPKG
export VCPKG_ROOT="$HOME/vcpkg"
export PATH=$VCPKG_ROOT:$PATH
# Emacs
[[ -f "/opt/homebrew/bin/brew" ]] && export EMACSLOADPATH="/opt/homebrew/share/emacs/site-lisp/:"