-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zshrc.tmpl
71 lines (57 loc) · 1.77 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
65
66
67
68
69
70
71
# Shell options
setopt HIST_IGNORE_SPACE
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
fi
autoload -Uz compinit
compinit
# XDG User Directories
# https://wiki.archlinux.org/title/XDG_Base_Directory
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_LOCAL_HOME="$HOME/.local"
export XDG_DATA_HOME="$XDG_LOCAL_HOME/share"
export XDG_CACHE_HOME="$HOME/.cache"
# PATH
export RANCHER_DESKTOP="$HOME/.rd/bin"
export PATH="$XDG_LOCAL_HOME/bin:$PATH"
export PATH="$RANCHER_DESKTOP:$PATH"
export PATH="$HOME/.jbang/bin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/gnu-getopt/bin/:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH="/Applications/IntelliJ IDEA.app/Contents/MacOS:$PATH"
export AQUA_GLOBAL_CONFIG="$XDG_CONFIG_HOME/aqua/aqua.yaml"
export AQUA_ROOT_DIR="$XDG_DATA_HOME/aquaproj-aqua"
export PATH="$AQUA_ROOT_DIR/bin:$PATH"
# Global variables
export BAT_THEME="Solarized (dark)"
export EDITOR=nvim
export VISUAL="$EDITOR"
export DOTNET_CLI_TELEMETRY_OPTOUT=true
export STARSHIP_CONFIG="$XDG_CONFIG_HOME/starship/starship.toml"
export SSH_AUTH_SOCK=~/.1password/agent.sock
# Aliases
source $XDG_CONFIG_HOME/zsh/aliases.zsh
# Evaluation
eval "$(starship init zsh)"
eval "$(brew shellenv)"
eval "$(direnv hook zsh)"
eval "$(zoxide init zsh)"
eval "$(mise activate zsh)"
{{ if eq .laptopType "work" }}
# konf-go
source <(konf-go shellwrapper zsh)
{{ end }}
# Setup fzf
# ---------
if [[ ! "$PATH" == *$HOMEBREW_PREFIX/opt/fzf/bin* ]]; then
PATH="${PATH:+${PATH}:}$HOMEBREW_PREFIX/opt/fzf/bin"
fi
# Key bindings
# ------------
source "$HOMEBREW_PREFIX/opt/fzf/shell/key-bindings.zsh"
# Completions
source $XDG_CONFIG_HOME/zsh/completions.zsh
{{ if eq .laptopType "work" }}
source $XDG_CONFIG_HOME/op/plugins.sh
{{ end }}