dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

maybe add this for tmux

Open Soneji opened this issue 2 years ago • 0 comments

if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]] && [[ -x "$(command -v tmux)" ]]; then
  echo "-> new SSH session, launching tmux"
  tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux
  echo "-> tmux detached, closing ssh session"
  exit
fi

Soneji avatar Jul 09 '21 13:07 Soneji