bash-set-shell-to-zsh-on-mac

92 阅读1分钟

bash set shell to zsh on mac , so easily, in 1 line.

  • get current bash shell
  • set bash shell to zsh if current using is other
echo $SHELL| grep "zsh" > /dev/null 2>&1;[ $? -ne 0 ] && chsh -s /bin/zsh;

todo

  • save and set more custom about these code to your gitee or github or other git repo.
  • use args preset or enable passing args (even using nanoparse).