/
dot_zshrc.tmpl
64 lines (48 loc) 路 1.49 KB
/
dot_zshrc.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
alias ll='lsd -alhF'
alias cloc='cloc --vcs=git'
alias nginx='nginx -g "daemon off;"'
# Mac-specific
{{ if (eq .chezmoi.os "darwin") -}}
{{- end }}
## M1 Mac-specific
{{ if (and (eq .chezmoi.os "darwin") (eq .chezmoi.arch "arm64" )) -}}
eval $(/opt/homebrew/bin/brew shellenv)
alias tailscale='/Applications/Tailscale.app/Contents/MacOS/Tailscale'
# Rosland aliases
alias ros='arch -x86_64'
alias rbrew='arch -x86_64 /usr/local/bin/brew'
# pymssql on arm64
export LDFLAGS="-L/opt/homebrew/opt/freetds/lib -L/opt/homebrew/opt/openssl@3/lib"
export CFLAGS="-I/opt/homebrew/opt/freetds/include"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"
# openjdk
export PATH="$PATH:/opt/homebrew/opt/openjdk/bin"
# Created by `userpath` on 2021-02-15 18:51:20
export PATH="$PATH:$HOME/.local/bin"
{{- end }}
# Miscellaneous
export EDITOR=vim
export GPG_TTY=$TTY
export RICH_THEME=monokai
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# general
export PATH="$HOME/bin:$PATH"
# cargo
export PATH="$PATH:$HOME/.cargo/bin"
# go
export PATH="$PATH:$HOME/go/bin"
# iterm2
test -e $HOME/.iterm2_shell_integration.zsh && source $HOME/.iterm2_shell_integration.zsh || true
# atuin
eval "$(atuin init zsh)"
# direnv
eval "$(direnv hook zsh)"
if [[ -n $NVIM ]]; then
direnv reload
fi
source ~/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh