-
Notifications
You must be signed in to change notification settings - Fork 2
/
dot_zshenv.tmpl
79 lines (74 loc) · 1.97 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/zsh
export ZPROFILE_READY=1
export TERM=${TERM:-xterm-256color}
export EDITOR=vi
export CLICOLOR=1
export VISUAL=$EDITOR
export REACT_EDITOR=$VISUAL
export PAGER=less
export LESS='-F -g -i -M -R -S -w -X -z-4'
export WORDCHARS=''
export WORK_DIR=$HOME/work
export GOPATH=$WORK_DIR/go
export HOMEBREW_NO_AUTO_UPDATE=1
export NODE_OPTIONS={{- default "" .node.options }}
export GIT_CLEAR_BRANCH_EXCLUDE="release|develop|master|development|production"
export fpath=( $HOME/.autoload-zsh $HOME/.zsh/completions $HOME/.zsh/functions/completions $fpath )
export VSCODE_FILE=$HOME/.vscode-cli
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow -g "!{.git,node_modules}/*" 2> /dev/null'
export HOMEBREW_NO_AUTO_UPDATE=1
export LANG=en_US.UTF-8
export LANGUAGE=$LANG
export LC_ALL=$LANG
export HISTSIZE=10000
export HISTFILE="$HOME/.zsh_history"
export SAVEHIST=$(($HISTSIZE * 1.5))
{{- if .enable.android }}
{{- if eq .chezmoi.os "darwin" }}
export ANDROID_HOME=$HOME/Library/Android/sdk
{{- end }}
{{- if eq .chezmoi.os "linux" }}
export ANDROID_HOME=$HOME/Android/Sdk
{{- end }}
export ANDROID_SDK=$ANDROID_HOME
export ANDROID_SDK_ROOT=$ANDROID_HOME
{{- end }}
typeset -U path
setopt APPEND_HISTORY
setopt AUTO_CD
setopt AUTO_LIST
setopt AUTO_MENU
setopt ALWAYS_TO_END
setopt CORRECT_ALL
setopt EXTENDED_GLOB
setopt EXTENDED_HISTORY
setopt GLOB_DOTS
setopt HIST_FIND_NO_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_NO_STORE
setopt HIST_REDUCE_BLANKS
setopt HIST_VERIFY
setopt INC_APPEND_HISTORY
setopt INTERACTIVE_COMMENTS
setopt LIST_TYPES
setopt LONG_LIST_JOBS
setopt MENU_COMPLETE
setopt NO_BEEP
setopt NO_HUP
setopt NOTIFY
setopt NULL_GLOB
setopt PROMPT_SUBST
setopt SHARE_HISTORY
setopt EXTENDEDGLOB
# Initialize completion
autoload -Uz compinit
autoload -Uz bashcompinit
# if [ -e ~/.zcompdump ] && [ $(date +'%Y%j') != $(date +'%Y%j' -r ~/.zcompdump) ]; then
# compinit -i
# bashcompinit
# else
compinit -i -C
bashcompinit -C
# fi