目次

WSL

設定

ターミナルにGitのブランチ名を表示する

export PS1='\[\033[01;32m\]\u@\h\[\033[01;33m\] \w \[\033[01;31m\]$(__git_ps1 "(%s)") \n\[\033[01;34m\]\$\[\033[00m\] '

Tips

VSCodeの開き方

$ code .

エクスプローラの開き方

$ explorer.exe .

Pythonの実行

Linux側での実行

$ python3
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

Windows側での実行

$ python.exe
Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 

再起動

$ wsl -t Ubuntu-18.04
$ wsl --shutdown
$ wsl -l

参考