Skip to content

only block alias merge when HostName itself depends on %h/%n - #153

Merged
quantumsheep merged 1 commit into
quantumsheep:masterfrom
mwestza:master
Jul 9, 2026
Merged

quantumsheep merged 1 commit into
quantumsheep:masterfrom
mwestza:master

Conversation

@mwestza

@mwestza mwestza commented May 25, 2026

Copy link
Copy Markdown
Contributor

only block alias merge when HostName itself depends on %h/%n

  • Adds Host::hostname_depends_on_pattern() helper.
  • Fixes aliases with %h in ControlPath being split into separate rows.

Likely also solves for PR #147.

…h/%n

 - Adds Host::hostname_depends_on_pattern() helper.
 - Fixes aliases with %h in ControlPath being split into separate rows.

Likely also solves for PR quantumsheep#147.
@quantumsheep
quantumsheep merged commit a179280 into quantumsheep:master Jul 9, 2026
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
sshs 4.8.0

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## ✨ What's New ✨

### Interface
* **Reload with `Ctrl+R`** - sshs reads the configuration files again and updates the host list. A restart is not necessary.
* **Pick your palette with `--color`** - the value is a Tailwind palette name, for example `blue`, `green`, or `rose`.
* **Keep your order with `--no-sort`** - sshs shows the hosts in configuration file order.
* **Sort by match score with `--sort-fancy`** - the best fuzzy match comes first ([#140](quantumsheep/sshs#140)).
* **Select text in your terminal** - sshs does not capture the mouse any more.
* **See the real destination** - sshs expands the `%h` and `%n` tokens in the destination column.

### Search
* **Each word must match** - sshs divides the query at spaces. A host appears only when all the words match.
* **Wider match scope** - the fuzzy score includes the name, the aliases, and the destination.
* **Stable selection** - when the query changes, the selection returns to the top match.

### SSH configuration parser
* Quoted values keep their `#` characters, and sshs removes the surrounding quotes.
* `Match` block entries do not leak into the previous host.
* Relative `Include` paths in the system file resolve against `/etc/ssh`.
* `Include` recursion stops at a safe depth and does not overflow the stack.
* Alias merging is blocked only when `HostName` depends on `%h` or `%n` ([#153](quantumsheep/sshs#153)).
* Parser errors show the offending line. A missing configuration file gives a clear error.
* A `Host` entry with no patterns does not cause a crash.

### Stability
* No crash on `End` or `PageDown` when the host list is empty.
* Page navigation moves by the visible table height.
* Table columns use their computed widths.
* When an SSH session exits with an error, sshs returns to the host list.

### Packaging and documentation
* New installation instructions for Debian and Ubuntu.
* New installation method for NetBSD ([#142](quantumsheep/sshs#142)).

## 🌟 New Contributors 🌟
* [@OmenWild](https://github.com/OmenWild) made their first contribution in [#140](quantumsheep/sshs#140)
* [@0323pin](https://github.com/0323pin) made their first contribution in [#142](quantumsheep/sshs#142)
* [@mwestza](https://github.com/mwestza) made their first contribution in [#153](quantumsheep/sshs#153)

**See All the Changes:** [The full list of updates from version 4.7.2 to 4.8.0](quantumsheep/sshs@4.7.2...4.8.0)
</pre>
  <p>View the full release notes at <a href="https://github.com/quantumsheep/sshs/releases/tag/4.8.0">https://github.com/quantumsheep/sshs/releases/tag/4.8.0</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!18010
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