-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_zshrc.tmpl
More file actions
45 lines (37 loc) · 952 Bytes
/
Copy pathdot_zshrc.tmpl
File metadata and controls
45 lines (37 loc) · 952 Bytes
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
{{- if or (eq .chezmoi.os "darwin") (eq .chezmoi.os "linux") }}
# ------------------------------
# Oh My Zsh bootstrap
# ------------------------------
export ZSH="$HOME/.oh-my-zsh"
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
docker
vscode
{{- if eq .chezmoi.os "darwin" }}
macos
{{- end }}
)
source "$ZSH/oh-my-zsh.sh"
# ------------------------------
# Environment & custom config
# ------------------------------
source ~/.zsh/env.zsh
source ~/.zsh/aliases.zsh
source ~/.zsh/functions.zsh
# ------------------------------
# Completion
# ------------------------------
autoload -Uz compinit
zstyle ':completion:*' menu select
zstyle ':completion:*' rehash true
compinit -C
# ------------------------------
# Oh My Posh prompt
# ------------------------------
if command -v oh-my-posh >/dev/null 2>&1; then
eval "$(oh-my-posh init zsh --config ~/.themes/ZSHThemes.json)"
fi
export TERM=xterm-256color
{{ end }}