Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Automatically add entry to Windows Terminal window selector #14

Closed
ItsIgnacioPortal opened this issue Sep 2, 2021 · 2 comments

Comments

@ItsIgnacioPortal
Copy link

ItsIgnacioPortal commented Sep 2, 2021

For me, the settings file was on C:\Users\%USERNAME%\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3dbbwe\localState\settings.json. It would only be necesarry to add an entry under "list" like this:

,
{
    "commandline": "wsl -d %DISTRONAME%",
    "guid": "%AUTO-GENERATED-GUID%",
    "hidden": false,
    "icon": "%easyWSL-ICON-PATH%",
    "name": "%DISTRONAME-CAPITALISED%"
}

Where AUTO-GENERATED-GUID can be generated with:[1]

[guid]::NewGuid()

I'd make a PR but I don't know csharp 😅

@ItsIgnacioPortal
Copy link
Author

nvm I opened this issue before testing the tool

@unrooted
Copy link
Member

unrooted commented Sep 2, 2021

No problem, hope you'll enjoy using our tool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants