Search code examples
zshgnu-screen

Unable to have Zsh as a login shell at Screen's startup


I put the following to my .zshrc

if [[ $STY = '' ]] then screen -xR; fi

I get Bash when I start terminal now, although I have /bin/zsh at Terminal > Settings in Mac.

Which variable do I need to change to make Zsh my login shell in Screen?


Solution

  • A fast way to change your shell, for example to Zsh, is to run the following code

    chsh -s /bin/zsh