Skip to content

a feature like auto title in zsh #10833

Closed

Description

@flyinke

Related problem

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.

Describe alternatives you've considered

No response

Additional context and details

No response

Activity

  1. added
    category:enhancement
    status:needs-triage
    on Oct 25, 2023
  2. fdncred commented on Oct 25, 2023

    @fdncred
    Contributor

    Mine shows the current directory when you cd in the title. You probably have to turn on shell_integration in the config.nu.
    image

  3. removed
    category:enhancement
    status:needs-triage
    on Oct 25, 2023
  4. drbrain commented on Nov 5, 2023

    @drbrain
    Contributor

    This is possible with PROMPT_COMMAND with the necessary escape codes (works on iTerm)

  5. fdncred commented on Nov 5, 2023

    @fdncred
    Contributor

    It already works in nushell. You just have to have shell_integration: true in your config. Nushell uses OSC7 for this.

  6. TheLostLambda commented on Apr 18, 2024

    @TheLostLambda
    Contributor

    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!

  7. added a commit that references this issue on Apr 19, 2024
    351bff8
  8. added this to the v0.93.0 milestone on Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions