On 20/10/07 02:34PM, ben wrote:
> Hello, Misc;
>
> I'm attempting to write an rc script to start a tmux session:

What problem are you trying to solve by using an rc script?

I have this in my .kshrc for automatic tmux sessions:

if which tmux >/dev/null 2>&1; then
  # if not inside a tmux session, and if no session is started, start
  # a new session
  test -z "$TMUX" && (tmux attach || tmux new-session)
fi

Of course, in the end the solution depends on what you want to do.

--
https://amissing.link

Reply via email to