mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-05-23 14:44:43 +01:00
Added syntax highlighting
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
export SHELL="brush-hl"
|
||||||
@@ -123,6 +123,14 @@ sysfetch() {
|
|||||||
fi
|
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
|
# Starship Prompt
|
||||||
if command -v starship >/dev/null 2>&1; then
|
if command -v starship >/dev/null 2>&1; then
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
|||||||
Reference in New Issue
Block a user