Terminal.app title
- Dominant language
- Rust
- Stars
- 35.8k
- Forks
- 846
- Avg merge
- 27m
- Merged PRs (30d)
- 3
Description
I'm not sure if this is an issue only with my terminal (Terminal.app 2.14 on macOS Sonoma), my shell (zsh 5.9), my termcap or the following recipe:
```justfile
psql *REST:
#!/usr/bin/env sh
set -eou pipefail
#echo -en "\033]0;\a"
export PGAPPNAME="psql[$USER@$(hostname)]"
psql \
-h localhost \
-p 55432 \
-U myuser \
-d mydb \
"$@"
```
... but when running this recipe (with `j psql`, just 1.24.0) the Terminal tab title only says "j" as seen in this screenshot:
I often run different recipes in different tabs and so this isn't quite ideal because I can't tell them apart by the title when they all say "j".
By un-commenting the `echo` line in the above recipe the title becomes much more useful:

I could put this into all my recipes but that's a bit messy and easy to forget. I'm wondering if there's anything that could be done in `just` to make this work better?
Contributor guide
Research direction
Start by reproducing the `psql` recipe with just 1.24.0 in macOS Terminal.app, comparing the default tab title with the version that emits the escape sequence. No implementation file or test is named in the issue; done means establishing whether just can provide a useful recipe-specific title without requiring an `echo` line in every recipe.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, rust, zsh
- Domain
- cli, operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100