Skip to content

Instantly share code, notes, and snippets.

@nazo
Last active October 8, 2020 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nazo/d2f765da5942b8d71797b188f20c4bb0 to your computer and use it in GitHub Desktop.
Save nazo/d2f765da5942b8d71797b188f20c4bb0 to your computer and use it in GitHub Desktop.
WSL2 小ネタ

WSL2でシェル補完が遅い時

microsoft/WSL#4234

/etc/wsl.conf に以下を記述する

[interop]
appendWindowsPath = false

Windows起動時にWSL2を起動しないようにする

できなさそうなのでスタートアップに適当なバッチファイルを作って wsl --shutdown と書いておく

ちなみにシャットダウンした後の起動はWindows Terminalを起動するなりしてWSL2にアクセスしようとすると自動的に起動する

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment