aboutsummaryrefslogtreecommitdiff
path: root/windows/wsl.md
diff options
context:
space:
mode:
Diffstat (limited to 'windows/wsl.md')
-rw-r--r--windows/wsl.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/windows/wsl.md b/windows/wsl.md
new file mode 100644
index 00000000..7dd1b0ab
--- /dev/null
+++ b/windows/wsl.md
@@ -0,0 +1,16 @@
+# WSL
+
+## Opening links in a Windows browser
+
+Create `~/.local/bin/x-www-browser` with the following content:
+
+```
+#!/bin/sh
+
+/mnt/c/Windows/explorer.exe "$@"
+true # ignore exit code so xdg-open works correctly
+```
+
+Ensure that the file is executable.
+
+`xdg-open` uses `x-www-browser`.