wsl: enable mirrored networking mode
This commit is contained in:
parent
3295b3d1d7
commit
edd4e6eefb
2 changed files with 6 additions and 1 deletions
|
@ -5,7 +5,7 @@ PATH="$PWD/bash/scripts:$PATH"
|
|||
is_wsl="$([[ "$(uname --kernel-release)" =~ [Mm]icrosoft ]] && echo yes)"
|
||||
while :; do
|
||||
action="$(whiptail --menu '' $(tput lines) $(tput cols) $(($(tput lines) - 7)) \
|
||||
wsl- 'WSL' wsl-scripts ' Set up WSL helper scripts' wsl-win ' Create symlinks to Windows profile folders' \
|
||||
wsl- 'WSL' wsl ' Create global config symlinks' wsl-scripts ' Set up WSL helper scripts' wsl-win ' Create symlinks to Windows profile folders' \
|
||||
bash- 'Bash' bash ' Create ~/* symlinks to config' bash-scripts ' Set up util scripts' bash-wsl-bashrc ' Create WSL-specific ~/.bashrc.d/ symlinks' \
|
||||
git- 'Git' git ' Create config symlinks (Linux+Windows)' git-delta ' Install Delta' git-filter-repo ' Install git-filter-repo' git-scripts ' Set up various scripts' \
|
||||
vscode- 'VS Code' vscode-ext ' Install extensions (Linux/Windows)' vscode ' Create config symlinks (Linux+Windows)' \
|
||||
|
@ -15,6 +15,9 @@ while :; do
|
|||
firefox- 'Firefox' firefox-rebuild-win ' Rebuild configs from templates (Windows)' firefox-link-win ' Create user.js symlinks (Windows)' \
|
||||
--notags --default-item "$action" 3>&2 2>&1 1>&3-)"
|
||||
case "$action" in
|
||||
wsl)
|
||||
2link.sh "$(get_var_path USERPROFILE)" wsl/.wslconfig
|
||||
;;
|
||||
wsl-scripts)
|
||||
2path.sh wsl/scripts
|
||||
;;
|
||||
|
|
2
wsl/.wslconfig
Normal file
2
wsl/.wslconfig
Normal file
|
@ -0,0 +1,2 @@
|
|||
[wsl2]
|
||||
networkingMode = mirrored
|
Loading…
Add table
Add a link
Reference in a new issue