WSL和windows terminal 可以在微软应用商店中进行下载。
ohmy下载
apt-get install zsh
apt-get install git
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
默认风格增加路径显示
这样下载之后使用的是ohmy自带的风格,在该风格下,shell是没有路径的。
cd .oh-my-zsh/themes
vim robbyrussell.zsh-theme
将其中的
PROMPT+=' %{$fg[cyan]%}%s%{$reset_color%} $(git_prompt_info)'
# 改为:
PROMPT+=' %{$fg[cyan]%}[$PWD]%{$reset_color%} $(git_prompt_info)'
激活更改的配置
cd
source ~/.zshrc