-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdot_zshrc.tmpl
51 lines (43 loc) · 1.62 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
# vim: ft=sh
# This file is meant to load only things which are needed on an interactive
# shell, like customizations, special aliases, etc.
export ZPLUG_HOME=$HOME/.config/zplug
{{ if .arch }}
source /usr/share/zsh/scripts/zplug/init.zsh
{{ else if .darwin }}
export ZPLUG_HOME=/opt/homebrew/opt/zplug
source $ZPLUG_HOME/init.zsh
{{ else }}
source $ZPLUG_HOME/init.zsh
{{ end }}
zstyle :omz:plugins:ssh-agent agent-forwarding on
zplug "plugins/ssh-agent", from:oh-my-zsh
zplug "zsh-users/zsh-syntax-highlighting"
zplug "zsh-users/zsh-autosuggestions"
zplug "plugins/history-substring-search", from:oh-my-zsh
zplug "zsh-users/zsh-completions"
zplug "plugins/git", from:oh-my-zsh
zplug "modules/history", from:prezto
zplug "modules/directory", from:prezto
zplug "$HOME/.config/zplugins/alias", from:local
zplug "$HOME/.config/zplugins/editor", from:local
zplug "$HOME/.config/zplugins/starthip_init", from:local
zplug "$HOME/.config/zplugins/zoxide", from:local
zplug "$HOME/.config/zplugins/golang", from:local
zplug "$HOME/.config/zplugins/codespaces", from:local
# Only perform the zplug check during bootstrapping
if [ -v CODESPACES ] ; then
if ! zplug check --verbose; then
zplug install
fi
fi
zplug load # --verbose
# Load local zshrc in case it exists
[[ -f $HOME/.zshrc_local ]] && source $HOME/.zshrc_local
# Sometimes I ssh into codespaces from the host terminal, I don't want a
# multiplexer there by default to avoid zellij inside of zellij
{{ if not .codespaces }}
# Auto attach to any existing zellij session, otherwise, add a new session.
export ZELLIJ_AUTO_ATTACH=true
eval "$(zellij setup --generate-auto-start zsh)"
{{ end }}