Skip to content

[Feature Request] Add new system variable for shell/terminal intergration #2760

Open

Description

@KroMignon

I am using SourceGit with Windows 11, and sometimes I need to manipulate directly the repository.
Therefore, I use the functionality "open in Terminal", which works great.

As I have many projects in parallel, it often happens that I have multiple terminal open, which is not a problem.
It would be great if I could directly name the terminal with the repository name.
For now I rename the terminal by hand, which is working but not "comfortable".
It would be great it there is a variable which contains the repository local name (e.g. REPRO_NAME).
This way I could change the Terminal arguments to pass set tab name in Windows Terminal: -d . --title "$REPRO_NAME"

I think this should be a very simple improvement.

Activity

  1. love-linger commented on Oct 13, 2026

    @love-linger
    Collaborator

    If you are using PowerShell, you can create a file named Profile.ps1 in $HOME\Documents\PowerShell\. And fill it with following content:

    function CustomizeTitle {
      $folderName = Split-Path -Leaf (Get-Location)
      $Host.UI.RawUI.WindowTitle = "$folderName"
      Clear-Host
    }
    CustomizeTitle
  2. love-linger commented on Oct 13, 2026

    @love-linger
    Collaborator

    You can download and test the latest CI build from GitHub Action.

  3. self-assigned this
    on Oct 13, 2026
  4. KroMignon commented on Oct 14, 2026

    @KroMignon
    Author

    @love-linger sorry for the late reply.

    The folder name is not really what I want, I want the "New Name" I have defined in SourceGit, with the "Edit" dialog

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions