You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just found a way to get this to work in a new terminal window right off the bat. It's not super ideal since you have to still be in screen, but at least it is automatic.
Basically just in .zshrc, do this:
if [[ -z$STY ]];then
autoload -Uz add-zsh-hook
add-zsh-hook -U precmd () {
if [[ -z$STY ]];then
screen
fi
}
fi
And then in ~/.screenrc:
startup_message off
No idea if there is a bash equivalent. But zsh is the standard shell for macs now.
I don't think this is a complete solution since it forces people to be in screen all the time, but it might be useful enough to some people that this could be a tip in the README for this?
The text was updated successfully, but these errors were encountered:
Related to shobrook#16
Add a tip for automatic `screen` startup in `.zshrc` to `README.md`.
* Add a new section under "Usage" for automatic `screen` startup in `.zshrc`.
* Include the suggested `.zshrc` configuration code snippet.
* Include the suggested `~/.screenrc` configuration code snippet to disable the startup message.
I just found a way to get this to work in a new terminal window right off the bat. It's not super ideal since you have to still be in
screen
, but at least it is automatic.Basically just in .zshrc, do this:
And then in
~/.screenrc
:No idea if there is a bash equivalent. But zsh is the standard shell for macs now.
I don't think this is a complete solution since it forces people to be in screen all the time, but it might be useful enough to some people that this could be a tip in the README for this?
The text was updated successfully, but these errors were encountered: