Windows Subsystem for Linux(WSL)
安裝
Windows10開啟Ubuntu子系統簡易步驟
Win10重置/登出Linux子系統教程
Windows10終端優化方案:Ubuntu子系統+cmder+oh-my-zsh
在wsl中使用oh-my-zsh
windows 10 linux子系統oh-my-zsh與Cmder配置-2018
WSL+cmder+oh-my-zsh美化win10指令工具(terminal)
"https://github.com/powerline/fonts,不過這個實在是有點慢,這裡我已經下載下傳下來放在了這裡。"安裝裡面Hack/Hack-Bold.ttf字型,并在cmder裡面安裝使用即可
使用
WSL與Windows互動實踐
win下終端可以直接輸入wsl進入,exit退出,或者直接使用wsl+linux指令執行。
使用Brew
Using Brew on Windows 10 with Windows Subsystem for Linux (WSL)
為什麼重新開機shell後,如果要執行相關指令(如hello),要先執行“使環境生效”的代碼?
即以下代碼
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
怎麼才能自動生效?
疑問
自帶了git,能看到git目錄,但不能cd到cd /usr/bin/git?
$ cd /usr/bin
$ ls
ginstall-info pstree.x11 whoami
git ptar wifi-status
git-receive-pack ptardiff write
git-shell ptargrep wslfetch
git-upload-archive ptx wslsys
$ cd /usr/bin/git
-bash: cd: /usr/bin/git: Not a directory