# gui: collapse tilde only on a true home path boundary \(\#24\) · lucenx/signaltty

[View on GitCafe](https://git.cafe/lucenx/signaltty/commit/85c1bf364c62c1e358fa47c5bfa96b18d66a2641)

Repository: [lucenx/signaltty](https://git.cafe/lucenx/signaltty)

Visibility: public

Requested revision: 85c1bf364c62c1e358fa47c5bfa96b18d66a2641

Requested commit: 85c1bf364c62c1e358fa47c5bfa96b18d66a2641

Commit: 85c1bf364c62c1e358fa47c5bfa96b18d66a2641

Tree: 7b67051b5c75440fcf42354bbe74f10418354622

Author: Simone

Committer: GitHub

## Message

```
gui: collapse tilde only on a true home path boundary (#24)

`tilde` used `starts_with(HOME)`, so a shorter HOME like `/home/sim`
turned a neighbor path `/home/simon/...` into `~/on/...`. Require an
exact home match or a following `/` before collapsing to `~`.

Co-authored-by: Grok Bot <grok-bot@users.noreply.github.com>
```

## Parents

- [0c60e2894b6efbec7a400243fc4d2c8d60cb2b68](https://git.cafe/lucenx/signaltty/commit/0c60e2894b6efbec7a400243fc4d2c8d60cb2b68?format=markdown)

[Source at this commit](https://git.cafe/lucenx/signaltty/tree/85c1bf364c62c1e358fa47c5bfa96b18d66a2641?format=markdown)
