Created
January 26, 2025 16:00
-
-
Save adamjames/2301f08477044d12a11b34fb4d0adcb0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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