WSL2
複数インスタンスの使用
code:powershell
# Install distribution from online
wsl --list --online
wsl --install Ubuntu
# Export and import distribution
wsl --export Ubuntu-18.04 Ubuntu-18.04.tar
wsl --import test ./test_dir Ubuntu-18.04.tar
wsl -d test
# In wsl
adduser foo
usermod -aG sudo foo
exit
# Login to wsl again with foo
wsl -d test -u foo
# Enable systemd
sudo vim /etc/wsl.conf
systemd=true
# Logout from wsl and restart it
wsl --terminate test
wsl -d test -u foo
# Remove distribution
wsl --unregister foo
WSLgのキーボード設定
警告音を止める
Uncommenting set bell-style none in /etc/inputrc and creating a .bash_profile with setterm -blength 0 didn't stop vim from beeping.
What worked for me was creating a .vimrc file in my home directory with set visualbell.
VS code