forked from HHousen/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc.tmpl
34 lines (28 loc) · 1.01 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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Platform specific customizations
if [[ -e ~/.platformrc ]]; then
source ~/.platformrc
fi
{{ if eq .chezmoi.os "darwin" -}}
source /opt/homebrew/share/antigen/antigen.zsh
{{ else if eq .chezmoi.os "linux" -}}
source /usr/share/zsh/share/antigen.zsh
{{ end -}}
antigen init ~/.antigenrc
# Source all the configs
source ~/.zsh/aliases.zsh
source ~/.zsh/exports.zsh
source ~/.zsh/history.zsh
if [[ -e "$HOME/.zsh/local.zsh" ]]; then
source ~/.zsh/local.zsh
fi
source ~/.p10k.zsh
if [[ -z "${SSH_CONNECTION}" && -n "${XDG_RUNTIME_DIR}" ]]; then
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
fi
# vim:ft=zsh