Skip to content

Suggest automatic screen in .zshrc etc. #16

@mgroth0

Description

@mgroth0

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions