⏺ Enhance prompt #5

Merged
navicore merged 1 commit from enhance into main 2026-01-15 01:22:21 +00:00
navicore commented 2026-01-15 01:21:54 +00:00 (Migrated from github.com)
  1. Removed dead code - data.rs:2 - removed unused Hash struct

  2. Added nerd font branch symbol - zshrc.sh:91

  • New variable: ZSH_THEME_GIT_PROMPT_BRANCH_SYMBOL="%{ %G%}"
  • The `` is the nerd font git branch icon
  • Displayed before branch name: ( main instead of (main
  1. Added stash count - zshrc.sh:49,75-77,98
  • Retrieves stash count: git stash list 2>/dev/null | wc -l
  • New variable: ZSH_THEME_GIT_PROMPT_STASH="%{$fg[yellow]%}%{󰏗%G%}"
  • The 󰏗 is a nerd font stash/inbox icon (yellow)
  • Shows count when stashes exist, e.g., 󰏗2

Example prompt appearance:
( main↑2|●1✚3󰏗2)
^ branch icon, branch name, 2 ahead, separator, 1 staged, 3 changed, 2 stashes

Users without nerd fonts can override ZSH_THEME_GIT_PROMPT_BRANCH_SYMBOL and ZSH_THEME_GIT_PROMPT_STASH in their .zshrc to use plain text symbols like $ for stash.

1. Removed dead code - data.rs:2 - removed unused Hash struct 2. Added nerd font branch symbol - zshrc.sh:91 - New variable: ZSH_THEME_GIT_PROMPT_BRANCH_SYMBOL="%{ %G%}" - The `` is the nerd font git branch icon - Displayed before branch name: ( main instead of (main 3. Added stash count - zshrc.sh:49,75-77,98 - Retrieves stash count: git stash list 2>/dev/null | wc -l - New variable: ZSH_THEME_GIT_PROMPT_STASH="%{$fg[yellow]%}%{󰏗%G%}" - The 󰏗 is a nerd font stash/inbox icon (yellow) - Shows count when stashes exist, e.g., 󰏗2 Example prompt appearance: ( main↑2|●1✚3󰏗2) ^ branch icon, branch name, 2 ahead, separator, 1 staged, 3 changed, 2 stashes Users without nerd fonts can override ZSH_THEME_GIT_PROMPT_BRANCH_SYMBOL and ZSH_THEME_GIT_PROMPT_STASH in their .zshrc to use plain text symbols like $ for stash.
Sign in to join this conversation.
No description provided.