提交 1e2152fc 编写于 作者: A Arthur Kalmenson

Make the chsh more reliable.

上级 971b071d
......@@ -22,7 +22,12 @@ echo "Copying your current PATH and adding it to the end of ~/.zshrc for you."
echo "export PATH=$PATH" >> ~/.zshrc
echo "Time to change your default shell to zsh!"
chsh -s "/usr/bin/env zsh"
if [ -f /bin/zsh ]
then
chsh -s /bin/zsh
else
chsh -s "/usr/bin/env zsh"
fi
echo ' __ __ '
echo ' ____ / /_ ____ ___ __ __ ____ _____/ /_ '
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册