Added syntax highlighting

This commit is contained in:
2026-02-18 16:22:42 +00:00
parent b123e9322e
commit 18c5cf2f0b
2 changed files with 9 additions and 0 deletions

1
dot_brushrc Normal file
View File

@@ -0,0 +1 @@
export SHELL="brush-hl"

View File

@@ -123,6 +123,14 @@ sysfetch() {
fi
}
# --- Simple, Self-Bootstrapping Syntax Highlighting ---
ZSH_SH_DIR="$HOME/.local/share/zsh-syntax-highlighting"
if [ ! -d "$ZSH_SH_DIR" ]; then
echo "Cloning zsh-syntax-highlighting..."
git clone --depth 1 https://github.com/zsh-users/zsh-syntax-highlighting.git "$ZSH_SH_DIR" > /dev/null 2>&1
fi
[ -f "$ZSH_SH_DIR/zsh-syntax-highlighting.zsh" ] && source "$ZSH_SH_DIR/zsh-syntax-highlighting.zsh"
# Starship Prompt
if command -v starship >/dev/null 2>&1; then
eval "$(starship init zsh)"