github JanDeDobbeleer/oh-my-posh v31.0.0

4 hours ago

Bug Fixes

  • config: close field-set analysis gaps and version the stamps (866f3cb)

  • config: widen heuristic scan to all config texts, stabilize fingerprints (c360885)

  • runtime: never cache a dir index built from an empty listing (27d853e)

  • segments: cover per-segment version fields in the derived fetch (41a7d6d)

  • segments: exclude wrapper-dispatch tools from the version cache (e8baaa9)

  • segments: keep Enabled standalone-correct under gate bypasses (2a70481)

  • feat(segments)!: derive version fetching from templates (4f8331e)

  • feat(jujutsu)!: separate bookmark names and distance (75b17d8)

  • feat(scm)!: derive fetch behavior from templates (e35405e)

Features

  • git: derive fetch units from template field references (a82b4de)
  • segments: activation gates to skip provably-inactive segments (a021176)

Performance Improvements

  • battery: use GetSystemPowerStatus on Windows instead of SetupAPI/IOCTL (5e94923), closes #1599
  • config: persist template field-set analysis across prompts (1e0cfb4)
  • runtime: index directory entries once for pattern matching (c87d72a)
  • segments: memoize version commands keyed by executable identity (d7d1e50)

BREAKING CHANGES

  • fetch_version is no longer used by language and
    Terraform segments. Remove the option and reference a version field in
    the template to fetch it. Remove version fields from the template to
    skip version commands. Existing configs still load, and the obsolete
    option is ignored.

Co-Authored-By: Claude noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01M4RA9ZrP7vuqVSR7nddNiQ

  • fetch_ahead_counter and ahead_icon are no longer
    used. .ClosestBookmarks now returns undecorated bookmark names. Add
    .AheadCount and an icon to the template to keep showing the distance.
    Existing configs still load, and obsolete options are ignored.

Co-Authored-By: Claude noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01M4RA9ZrP7vuqVSR7nddNiQ

  • SCM fetch options are no longer used. Remove
    fetch_status, fetch_push_status, fetch_upstream_icon, fetch_bare_info,
    and fetch_user. To control fetching, add or remove the corresponding
    fields from the segment templates. Existing configs still load, and
    obsolete options are ignored.

Co-Authored-By: Claude noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01M4RA9ZrP7vuqVSR7nddNiQ

Don't miss a new oh-my-posh release

NewReleases is sending notifications on new releases.