-- Leo's gemini proxy

-- Connecting to g.codelearn.me:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

Open Tmux on ssh login


Here is few lines you need to add to your .bashrc/.zshrc/.whatevershellrc:


if [[ -z "$TMUX" ]] && [ "$SSH_CONNECTION" != "" ]; then
    tmux attach-session -t mysession || tmux new-session -s mysession
fi

These lines check if tmux session `mysession` is exist then we `tmux attach-session` is executed. Otherwise new session with `mysession` name is created.


Replace `mysession` to something more meaningful.

-- Response ended

-- Page fetched on Sun May 12 11:16:49 2024