-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zprofile.tmpl
43 lines (33 loc) · 934 Bytes
/
dot_zprofile.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
export DO_NOT_TRACK=1
# editors
export EDITOR='vim'
export VISUAL='vim'
export PAGER='less'
# language
export LANG='en_US.UTF-8'
# paths
typeset -gU cdpath fpath mailpath path
path=(
/usr/local/{bin,sbin}
$path
)
# less
export LESS='-F -g -i -M -R -S -w -X -z-4'
# shellcheck disable=SC1009,SC1072,SC1073
if (( $#commands[(i)lesspipe(|.sh)] )); then
export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
fi
# android
[[ -d "$HOME/Library/Android/sdk" ]] && export PATH="$PATH:$HOME/Library/Android/sdk/platform-tools"
# pub
[[ -d "$HOME/.pub-cache" ]] && export PATH="$HOME/.pub-cache/bin:$PATH"
# maestro
[[ -d "$HOME/.maestro" ]] && export PATH="$PATH:$HOME/.maestro/bin"
# rye
[[ -f "$HOME/.rye/env" ]] && source "$HOME/.rye/env"
{{ if eq .chezmoi.os "darwin" -}}
# browser
export BROWSER='open'
# orbstack
[[ -d "$HOME/.orbstack" ]] && source ~/.orbstack/shell/init.zsh 2>/dev/null || :
{{- end }}