Skip to content

Instantly share code, notes, and snippets.

@adamjames
Created January 26, 2025 16:00
Show Gist options
  • Save adamjames/2301f08477044d12a11b34fb4d0adcb0 to your computer and use it in GitHub Desktop.
Save adamjames/2301f08477044d12a11b34fb4d0adcb0 to your computer and use it in GitHub Desktop.
# autoload tmux
# if shell is interactive, and TMUX var is set...
if [[ $- == *i* ]] && [[ -z "${TMUX}" ]]; then
tmux attach || exec tmux new-session && exit;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment