microsoft / microsoft/WSL

New feature to set alias when I'm installing a new distro like a "--alias" param

Open
#10,090 1 comment 3 reactions 0 assignees View on GitHub
feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

I would like to able run multiples Ubuntu with same release version. But, the names are equal. I should be able to decide which distro run based to an alias.

For example:

```shell
$ wsl --install -d Ubuntu-20.04 --alias ExperimentalUbuntu
$ wsl --install -d Ubuntu-20.04 --alias MainUbuntu

$ wsl --list
Distribuições do Subsistema do Windows para Linux:
MainUbuntu Ubuntu-20.04 (Padrão)
ExperimentalUbuntu Ubuntu-20.04
```

I tried to find out how I can rename, but I need to deep diving in Registry Editor. Probably not recommended way

Contributor guide

Open the contributing guide

Research direction

Start by tracing the `wsl --install` command and how installed distributions are registered and displayed by `wsl --list`. Use the requested examples to define the expected alias behavior, including multiple Ubuntu-20.04 installations, and verify that aliases are accepted and shown distinctly without relying on Registry Editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.