Skip to content

Terminal tab title: Show "~" instead of $HOME #274200

@jdanbrown

Description

@jdanbrown

I want to use "terminal.integrated.tabs.title": "${cwd}" to see the full path in the title of each terminal tab, but it gets visually really noisy because nearly every terminal tab title starts with my home dir, e.g.

  • /Users/danb/.local/share/opencode
  • /Users/danb/.local/share/opencode/snapshot/9c45fa85ce981595e864eb394465867df6de3383
  • /Users/danb/tmp/a
  • /Users/danb/tmp/b
  • /Users/danb/tmp/c

It'd be more usable and less noisy if vscode instead automatically replaced ^$HOME/ with ~, like this:

  • ~/.local/share/opencode
  • ~/.local/share/opencode/snapshot/9c45fa85ce981595e864eb394465867df6de3383
  • ~/tmp/a
  • ~/tmp/b
  • ~/tmp/c

I don't see a way to do it in my settings.json, so I think vscode would need to do this substitution internally for the ${cwd} variable?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions