配置MAC端的zsh时出错
Zsh is not installed! Please install zsh first!
此时iterm2打开的的确是ZSH
验证shell
MacBook-Pro% echo $SHELL
/bin/zsh
google的解决办法如下
sudo ln -s /usr/share/defaults/etc/shells /etc/shellssudo ln -s
我这没什么用,重新想辙
解决办法如下
1、打开 install.sh修改验证zsh处的代码
wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
vim install.sh
注释掉如下部分
# if command -v zsh >/dev/null 2>&1; then
# printf "${YELLOW}Zsh is not installed!${NORMAL} Please install zsh first!\n"
# exit
# fi
2、执行
chmod 777 install.sh
./install.sh