Skip to content

Preserve caller nullglob setting in _omarchy_complete - #20144

Merged
dhh merged 2 commits into
quattrofrom
fix/bash-completions-nullglob
Nov 25, 2026
Merged

dhh merged 2 commits into
quattrofrom
fix/bash-completions-nullglob

Conversation

@dhh

@dhh dhh commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Save the caller's nullglob shopt state before enabling it in _omarchy_complete (default/bash/completions) and only unset it afterward if it was previously disabled.
  • Previously invoking omarchy completion unconditionally ran shopt -u nullglob, silently disabling nullglob in interactive shells that had turned it on.

Tests

  • Added test/shell.d/bash-completions-test.sh — PASS (2/2; confirmed failing on quattro).

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Preserves the caller’s nullglob setting in _omarchy_complete.

  • Omarchy completion leaves nullglob as the caller set it.

Reviews (2) · Last reviewed commit: "Add checkout bin to PATH in bash complet..." · Reviewed by Greptile

Comment thread test/shell.d/bash-completions-test.sh Resolved
@dhh
dhh merged commit cd496c9 into quattro Nov 25, 2026
8 of 9 checks passed
@dhh
dhh deleted the fix/bash-completions-nullglob branch November 25, 2026 16:10
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 25, 2026
* Preserve caller nullglob setting in _omarchy_complete

* Add checkout bin to PATH in bash completion regression test
@emirb emirb added this to the 4.6.0 milestone Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants