mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-12-12 00:56:55 +00:00
29 lines
817 B
Bash
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'
|
|
|