-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zshrc.tmpl
55 lines (46 loc) · 1.1 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
# Path to oh-my-zsh installation
{{ if eq .chezmoi.os "darwin" }}
ZSH="$XDG_DATA_HOME/oh-my-zsh/"
{{ else }}
ZSH="/usr/share/oh-my-zsh/"
{{ end }}
# Oh My Zsh theme
ZSH_THEME="agnoster"
# Plugins
plugins=(
git
pass
jsontools
gitignore
docker
composer
{{ if eq .chezmoi.os "linux" }}
archlinux
zsh-autosuggestions
zsh-syntax-highlighting
{{ end }}
)
# Shell interactive configuration
. $XDG_CONFIG_HOME/sh/interactive
# Comp dump
[ -d "$XDG_CACHE_HOME/zsh" ] || mkdir -p "$XDG_CACHE_HOME/zsh"
autoload -Uz compinit
compinit -d "$XDG_CACHE_HOME/zsh/zcompdump"
# History
mkdir -p "$XDG_STATE_HOME/zsh"
export HISTFILE="$XDG_STATE_HOME/zsh/history"
# Oh-My-Zsh
source $ZSH/oh-my-zsh.sh
# Unalias `cs` due to conflict with Coursier CLI
unalias cs
{{ if eq .chezmoi.os "darwin" }}
if [ -f $(brew --prefix)/etc/brew-wrap ]; then
source $(brew --prefix)/etc/brew-wrap
fi
{{ end }}
{{ if eq .chezmoi.os "linux" }}
# Android SDK
export ANDROID_SDK_ROOT=$HOME/Development/Android/SDK
export PATH=$PATH:$ANDROID_SDK_ROOT/emulator
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
{{ end }}