parent
b0910ee44c
commit
36bb6c8e29
16 changed files with 474 additions and 571 deletions
|
@ -1,5 +1,48 @@
|
|||
{{- if (or (eq .chezmoi.hostname "himiko") (eq .chezmoi.hostname "wegerpc")) -}}
|
||||
{{- include "realFiles/zsh/laptop/zshrc" -}}
|
||||
{{- else -}}
|
||||
{{- include "realFiles/zsh/other/zshrc" -}}
|
||||
{{- end -}}
|
||||
{{- if eq .chezmoi.osRelease.id "endeavouros" }}
|
||||
test -v DISTROBOX_HOST_HOME && { unset ZDOTDIR; exec zsh }
|
||||
test -v SSH_CONNECTION && eval "$(zellij setup --generate-auto-start zsh)"
|
||||
|
||||
{{- end }}
|
||||
# options
|
||||
setopt NO_CLOBBER
|
||||
unsetopt FLOW_CONTROL
|
||||
|
||||
# deduplicate path
|
||||
typeset -U path PATH
|
||||
{{- if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.id "endeavouros")) }}
|
||||
path+=("$XDG_DATA_HOME"/JetBrains/Toolbox/scripts) # jetbrains toolbox
|
||||
path+=("$XDG_DATA_HOME/mise/shims") # mise
|
||||
{{- end }}
|
||||
path+=("$HOME"/.local/bin) # local bin
|
||||
|
||||
# startup banner
|
||||
potentialBanner=('joke bofh' 'joke dad' 'fastfetch')
|
||||
eval "$potentialBanner[$RANDOM%$#potentialBanner+1]"
|
||||
|
||||
# antidote
|
||||
{{- if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.id "endeavouros")) }}
|
||||
source '/usr/share/zsh-antidote/antidote.zsh'
|
||||
{{- else }}
|
||||
test -r "$XDG_DATA_HOME"/antidote/antidote.zsh || git clone https://github.com/mattmc3/antidote.git "$XDG_DATA_HOME"/antidote
|
||||
source "$XDG_DATA_HOME"/antidote/antidote.zsh
|
||||
{{- end }}
|
||||
zstyle ':antidote:bundle' use-friendly-names 'yes'
|
||||
antidote load
|
||||
|
||||
# load programs
|
||||
smartcache eval zoxide init --cmd cd zsh
|
||||
smartcache eval atuin init zsh
|
||||
smartcache eval direnv hook zsh
|
||||
{{- if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.id "endeavouros")) }}
|
||||
smartcache eval mise activate zsh
|
||||
{{- end }}
|
||||
|
||||
# source files
|
||||
source "$ZDOTDIR"/files/aliases.zsh
|
||||
source "$ZDOTDIR"/files/sshcomp.zsh
|
||||
|
||||
# local overrides
|
||||
for sourced in "$XDG_DATA_HOME"/zsh/files/*; do source $sourced; done
|
||||
|
||||
# theme
|
||||
eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/emodipt-extend.omp.json")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue