Alexandre Oliva on Nostr: if your $TERM starts with xterm or rxvt, the following may do the job: ...
if your $TERM starts with xterm or rxvt, the following may do the job:
PS1="\[\e]0;TAB NAME GOES HERE\a\]$PS1"
Published at
2025-04-02 04:50:16Event JSON
{
"id": "03bec58ca944cf2a331b1c0582bbdaa6609b89440bfe0351db62aba45b4108f9",
"pubkey": "4126d00825e2d4a66c9a07e6a950fc4f3efb4cbf105c7d73509a34d1c6af7a18",
"created_at": 1743569416,
"kind": 1,
"tags": [
[
"p",
"701304e8500bf9c941021b768d1ed3649941fdfac4760132cfeaa6344348f912",
"wss://relay.mostr.pub"
],
[
"e",
"91e2a33902857fcf1e5a2fe316576d02557e42ddf94fe37562ce5e3f87950055",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://snac.lx.oliva.nom.br/lxo/p/1743569416.047314",
"activitypub"
]
],
"content": "if your $TERM starts with xterm or rxvt, the following may do the job:\n\nPS1=\"\\[\\e]0;TAB NAME GOES HERE\\a\\]$PS1\"\n",
"sig": "f3ee8027a036bbc12453fafe41efcef8d5a1d13f43cac0810173b83dac5245f5b6edcf8c220da455530c21ef98825cf3a8d603f544830ad5b100dd2a733057f9"
}