You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The title of the terminal does not change in the current version.
Describe the solution you'd like
would like to add a function like auto title in zsh to display the current directory name in the title when entering a different directory, or to display the current server name in the title when connecting to other servers with ssh.
I can confirm that this works with shell_integration: true, but it only seems to work after running a command / hitting enter — I think this feature should also run on shell startup when enabled! (That's what other shells like fish do!)
I'm happy to make a PR, but I might need a pointer or two as to where to find things!
I'm also interested in what terminals this causes issues with, and why this isn't enabled by default!
Activity
fdncred commentedon Oct 25, 2023
Mine shows the current directory when you cd in the title. You probably have to turn on

shell_integrationin the config.nu.drbrain commentedon Nov 5, 2023
This is possible with
PROMPT_COMMANDwith the necessary escape codes (works on iTerm)fdncred commentedon Nov 5, 2023
It already works in nushell. You just have to have
shell_integration: truein your config. Nushell uses OSC7 for this.TheLostLambda commentedon Apr 18, 2024
I can confirm that this works with
shell_integration: true, but it only seems to work after running a command / hitting enter — I think this feature should also run on shell startup when enabled! (That's what other shells likefishdo!)I'm happy to make a PR, but I might need a pointer or two as to where to find things!
I'm also interested in what terminals this causes issues with, and why this isn't enabled by default!
fix(shell_integration): set window title on startup (#12569)