dotfiles/home/.config/zsh/rc/zgenom.zsh
2025-12-02 18:56:45 +01:00

29 lines
817 B
Bash

ZGENOM_DIR="${ZDOTDIR}/.zgenom"
# Clone zgenom if it's not present yet
if [[ ! -d "$ZGENOM_DIR" ]]; then
git clone https://github.com/jandamm/zgenom "$ZGENOM_DIR"
fi
# Load zgenom (plugin manager for ZSH)
source "${ZGENOM_DIR}/.zgenom/zgenom.zsh"
# Check for zgenom updates
# This does not increase startup time
zgenom autoupdate
# If the init script doesn't exist yet
if ! zgenom saved; then
zgenom load akash329d/zsh-alias-finder
zgenom load clarketm/zsh-completions
zgenom load zsh-users/zsh-autosuggestions
zgenom load zdharma-continuum/fast-syntax-highlighting
# Generate the init script from plugins above
zgenom save
fi
# Override the comment color to make comments visible on black bg
# (overrides the zsh-fast-highlighting plugin)
FAST_HIGHLIGHT_STYLES[comment]='fg=#696C76'