Re: [hackers] [st] startup options

From: Eric Pruitt <eric.pruitt_AT_gmail.com>
Date: Tue, 24 Nov 2015 16:15:06 -0800

On Wed, Nov 25, 2015 at 12:38:22AM +0100, Rashad Kanavath wrote:
> Is there anyway I can run st with tmux or screen by default without the
> scroll patch in[2] ?

I use tmux or screen regardless of the terminal emulator I use, so I
launch tmux as part of bashrc. The simplest way to do this would be to
have something like this in your shell initialization script:

    if [ -z "$TMUX" ]; then
        tmux && exit
    fi

I recommend doing the "&& exit" so if tmux isn't installed or is
otherwise broken, you'll still land in a functioning shell.

Eric
Received on Wed Nov 25 2015 - 01:15:06 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 25 2015 - 01:24:12 CET