github qu8n/herdr-automatic-rename v0.5.0

latest releases: v0.11.1, v0.11.0, v0.10.0...
one month ago

Grows the icon map from 9 entries to ~170 and makes it configurable, with ICON_FALLBACK for programs it does not know and ICON_MAP for per-program overrides.

Upgrade note for anyone already running ICONS_ENABLED=1: programs outside the map now show a ? where they previously showed no glyph at all. Set ICON_FALLBACK='' to keep them text-only.

Added

  • The icon map moved out of naming.sh into icons.sh and grew from 9 entries to the full tmux-nerd-font-window-name map (its defaults.yml, ~170 programs), keeping the aliases this plugin always shipped (gvim/view, bun/npx/pnpm, ipython/ipython3) and a robot glyph for every agent herdr detects.
  • ICON_FALLBACK (default ?): glyph shown when a program is missing from the map, like upstream's fallback-icon. '' turns the fallback off and keeps unknown programs text-only. Under ICON_STYLE=icon the fallback is treated as "no glyph", so an unknown program keeps its plain name (rg, not ?).
  • ICON_MAP: per-program icon overrides as ("prog=glyph") pairs, checked before the builtin map (e.g. ICON_MAP=("claude=󰚩")).
  • Shell labels get no icon even when the map has them: precmd names an idle prompt without a program, so a glyph would flip the label between zsh and <glyph> zsh on every reconcile. This covers the fixed SHELLS six, IGNORED_PROGRAMS commands showing the shell label, and the user's real login shell (SHELL_NAME), which can sit outside SHELLS (nu, tcsh, elvish, ...).

Fixed

  • HIDE_SHELL now blanks the login shell itself. With 0.4.0's fixed SHELLS six, a login shell outside the list (nu, tcsh, elvish, ...) kept naming itself on reconcile while the idle label stayed blank.
  • The login shell is recognized by program rather than by computed label: prog == SHELL_NAME is its own shell arm, so a reconcile agrees with the bare prompt even with SHOW_PROGRAM_ARGS=1, where the command-line path used to hijack it.

Thanks to @MuntasirSZN for #7.

Full Changelog: v0.4.0...v0.5.0

Don't miss a new herdr-automatic-rename release

NewReleases is sending notifications on new releases.