2022-07-21 17:01:22 +00:00
|
|
|
{{- if or
|
|
|
|
(eq .machinetype "workstation")
|
|
|
|
(eq .chezmoi.osRelease.id "fedora")
|
|
|
|
(and (eq .chezmoi.osRelease.id "almalinux" "centos" "rhel") (gt (atoi .chezmoi.osRelease.versionID) 7))
|
|
|
|
(and (eq .chezmoi.osRelease.id "debian") (gt (atoi .chezmoi.osRelease.versionID) 9 )) -}}
|
2021-08-24 23:16:19 +00:00
|
|
|
# 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
|
2021-10-20 13:44:01 +00:00
|
|
|
{{- end }}
|
2021-08-24 23:16:19 +00:00
|
|
|
|
2021-09-01 17:35:54 +00:00
|
|
|
# User specific environment
|
|
|
|
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
|
|
|
|
then
|
|
|
|
export PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
|
|
|
fi
|
|
|
|
|
2021-08-24 23:16:19 +00:00
|
|
|
# Load the antigen library
|
2021-10-12 20:23:33 +00:00
|
|
|
if [[ ! -f "$HOME/antigen.zsh" ]]; then
|
2021-10-12 20:18:38 +00:00
|
|
|
curl -L git.io/antigen > $HOME/antigen.zsh
|
2021-08-24 23:16:19 +00:00
|
|
|
fi
|
2023-03-02 18:04:36 +00:00
|
|
|
source "$HOME/antigen.zsh"
|
2021-08-24 23:16:19 +00:00
|
|
|
|
|
|
|
# Load the oh-my-zsh library
|
|
|
|
antigen use oh-my-zsh
|
|
|
|
|
|
|
|
# Default bundles
|
|
|
|
antigen bundle git
|
|
|
|
antigen bundle screen
|
|
|
|
antigen bundle extract
|
|
|
|
|
|
|
|
# Custom bundles
|
|
|
|
antigen bundle zsh-users/zsh-syntax-highlighting
|
|
|
|
antigen bundle zsh-users/zsh-autosuggestions
|
|
|
|
antigen bundle zsh-users/zsh-completions
|
|
|
|
antigen bundle esc/conda-zsh-completion
|
|
|
|
antigen bundle millironx/cowsay-cows
|
|
|
|
|
2022-07-21 17:01:22 +00:00
|
|
|
{{ if or
|
|
|
|
(eq .machinetype "workstation")
|
|
|
|
(eq .chezmoi.osRelease.id "fedora")
|
|
|
|
(and (eq .chezmoi.osRelease.id "almalinux" "centos" "rhel") (gt (atoi .chezmoi.osRelease.versionID) 7))
|
|
|
|
(and (eq .chezmoi.osRelease.id "debian") (gt (atoi .chezmoi.osRelease.versionID) 9 )) -}}
|
|
|
|
antigen theme romkatv/powerlevel10k
|
|
|
|
{{- else -}}
|
|
|
|
antigen theme https://gist.github.com/efde5e8d507bd3e1e046198b69d579f8.git gianu-improved
|
|
|
|
{{- end }}
|
2021-08-24 23:16:19 +00:00
|
|
|
|
|
|
|
# oh-my-zsh configuration settings
|
|
|
|
HYPHEN_INSENSITIVE="true"
|
|
|
|
COMPLETION_WAITING_DOTS="true"
|
|
|
|
|
2021-08-25 01:00:29 +00:00
|
|
|
source $HOME/.hooks
|
|
|
|
|
2021-08-24 23:16:19 +00:00
|
|
|
# Tell Antigen that you're done
|
|
|
|
antigen apply
|
|
|
|
|
|
|
|
# User configuration
|
|
|
|
# Setup bash completion support
|
|
|
|
# (zsh completion support is handled by oh-my-zsh)
|
|
|
|
autoload -U bashcompinit
|
|
|
|
bashcompinit
|
|
|
|
|
2021-08-25 01:36:50 +00:00
|
|
|
source $HOME/.envvar
|
2021-08-24 23:16:19 +00:00
|
|
|
|
|
|
|
alias zshconfig="$EDITOR ~/.zshrc"
|
2021-08-25 00:46:22 +00:00
|
|
|
source $HOME/.aliases
|
2021-08-24 23:16:19 +00:00
|
|
|
|
2022-07-21 17:01:22 +00:00
|
|
|
{{ if or
|
|
|
|
(eq .machinetype "workstation")
|
|
|
|
(eq .chezmoi.osRelease.id "fedora")
|
|
|
|
(and (eq .chezmoi.osRelease.id "almalinux" "centos" "rhel") (gt (atoi .chezmoi.osRelease.versionID) 7))
|
|
|
|
(and (eq .chezmoi.osRelease.id "debian") (gt (atoi .chezmoi.osRelease.versionID) 9 )) -}}
|
2021-08-24 23:16:19 +00:00
|
|
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
2022-07-21 17:01:22 +00:00
|
|
|
{{- end }}
|