Skip to content

Commit 1a8025d

Browse files
committed
Interactive browser selection for WSL
1 parent f6444b6 commit 1a8025d

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

_partials/es/windows_browser.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Linking your default browser to Ubuntu
2+
3+
Para asegurarnos de que puedas interactuar desde la terminal de Ubuntu con el navegador que tienes instalado en Windows, debemos definirlo como tu navegador predeterminado aquí.
4+
5+
Ejecuta el siguiente comando y sigue las instrucciones. La herramienta te pedirá que elijas uno de los navegadores disponibles en tu sistema. Solo necesitas escribir el **número** que aparece delante del navegador.
6+
7+
```bash
8+
bash -c "$(curl -s https://raw.githubusercontent.com/julesvanrie/wslsetbrowser/refs/heads/main/wslsetbrowser.sh)"
9+
```
10+
11+
Reinicia tu terminal:
12+
13+
```bash
14+
exec zsh
15+
```
16+
17+
Luego asegúrate de que el siguiente comando devuelva "Browser defined 👌":
18+
19+
```bash
20+
[ -z "$BROWSER" ] && echo "ERROR: please define a BROWSER environment variable ⚠️" || echo "Browser defined 👌"
21+
```
22+
23+
Si no es así, puedes seguir [estas instrucciones](https://github.com/lewagon/setup/blob/master/_partials/es/windows_browser.md) para configurar tu navegador predeterminado manualmente.
24+
25+
No dudes en **pedirle ayuda a tu profesor**.

_partials/windows_browser.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Linking your default browser to Ubuntu
2+
3+
To be sure that you can interact with your browser installed on Windows from your Ubuntu terminal, we need to set it as your default browser there.
4+
5+
Run the following command and follow the instructions. The tool will prompt you to choose one of the browsers that are available on your system. You just need to type in the **number** that is shown in front of the browser.
6+
7+
```bash
8+
bash -c "$(curl -s https://raw.githubusercontent.com/julesvanrie/wslsetbrowser/refs/heads/main/wslsetbrowser.sh)"
9+
```
10+
11+
Reset your terminal:
12+
13+
```bash
14+
exec zsh
15+
```
16+
17+
Then please make sure that the following command returns "Browser defined 👌":
18+
19+
```bash
20+
[ -z "$BROWSER" ] && echo "ERROR: please define a BROWSER environment variable ⚠️" || echo "Browser defined 👌"
21+
```
22+
23+
If it does not, you can follow [these instructions](https://github.com/lewagon/setup/blob/master/_partials/windows_browser.md) to set your default browser manually.
24+
25+
Do not hesitate to **contact a teacher**.

0 commit comments

Comments
 (0)