mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-02-20 07:08:03 +00:00
Added syntax highlighting
This commit is contained in:
1
dot_brushrc
Normal file
1
dot_brushrc
Normal file
@@ -0,0 +1 @@
|
||||
export SHELL="brush-hl"
|
||||
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user