1、问题:
使用的是iterm2
可以直接去官网下载:https://www.iterm2.com/
终端是zsh, 打开后不展示当前分支名称
wode@ZBMAC-C02C20E1M myproject %
2、解决办法:
安装Oh my zsh
安装方法有两种,可以使用curl或wget,看自己环境或喜好:
# curl 安装方式
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# wget 安装方式
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
oh-my-zsh开源地址:https://github.com/robbyrussell/oh-my-zsh
3、已解决问题
➜ myproject git:(master)