Last active
October 26, 2020 22:44
-
-
Save noahbliss/c4631fddff2f98ac833022823784ac3e to your computer and use it in GitHub Desktop.
tmux bashrc helpers
This file contains 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
# Auto attach existing tmux session, if none exist, start one. | |
#if command -v tmux >/dev/null && ! [ $TERM == "screen" ]; then tmux a || tmux; fi | |
# Tell us if tmux is running or not, does _not_ auto attach. | |
if if command -v tmux >/dev/null && tmux ls &>/dev/null && ! [ "$TERM" == "screen" ]; then echo -e "------\n A TMUX session exists! Attach with \`tmux a\`\n------\n"; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment