feat(shell): add zsh-syntax-highlighting and switch to suvadu history

This commit is contained in:
Prad Nukala committed 2026-08-13 19:49:09 -04:00
1 parent 281d0669ad
commit 12155ad58c
2 files changed
+18 -4

No files matched your search

+4 -1
View File
@@ -42,6 +42,7 @@ packages:
- atuin - atuin
- wget - wget
- starship - starship
- zsh-syntax-highlighting
# fonts # fonts
- ttf-victor-mono-nerd - ttf-victor-mono-nerd
aur: aur:
@@ -84,6 +85,7 @@ packages:
- glow - glow
- atuin - atuin
- starship - starship
- zsh-syntax-highlighting
- topgrade - topgrade
cask: cask:
- kitty - kitty
@@ -95,4 +97,5 @@ packages:
- dlvhdr/gh-dash - dlvhdr/gh-dash
- meiji163/gh-notify - meiji163/gh-notify
go: [] go: []
cargo: [] cargo:
- suvadu
+14 -3
View File
@@ -29,12 +29,23 @@ fi
# ZLE keybinds — zsh ports of fish_user_key_bindings.fish # ZLE keybinds — zsh ports of fish_user_key_bindings.fish
[ -f "$HOME/.config/zsh/keybinds.zsh" ] && . "$HOME/.config/zsh/keybinds.zsh" [ -f "$HOME/.config/zsh/keybinds.zsh" ] && . "$HOME/.config/zsh/keybinds.zsh"
# atuin shell history # suvadu shell history (replaces atuin here; fish keeps atuin — suvadu has no
[ -f "$HOME/.atuin/bin/env" ] && . "$HOME/.atuin/bin/env" # fish support yet, bash still on atuin too)
command -v atuin >/dev/null 2>&1 && eval "$(atuin init zsh)" command -v suv >/dev/null 2>&1 && eval "$(suv init zsh)"
# Generated for envman. Do not edit. # Generated for envman. Do not edit.
[ -s "$HOME/.config/envman/load.sh" ] && . "$HOME/.config/envman/load.sh" [ -s "$HOME/.config/envman/load.sh" ] && . "$HOME/.config/envman/load.sh"
# Prompt — starship, consistent with fish # Prompt — starship, consistent with fish
command -v starship >/dev/null 2>&1 && eval "$(starship init zsh)" command -v starship >/dev/null 2>&1 && eval "$(starship init zsh)"
# Fish-style syntax highlighting (zsh-users/zsh-syntax-highlighting).
# MUST stay last in .zshrc: it wraps every zle widget defined above
# (keybinds, compinit, suv/starship hooks).
for _zsh_hl in \
/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh \
/opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh \
/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh; do
[ -r "$_zsh_hl" ] && . "$_zsh_hl" && break
done
unset _zsh_hl