Skip to content

Instantly share code, notes, and snippets.

@wobbol
Created March 11, 2019 11:00
Show Gist options
  • Save wobbol/c5fc570dc3807b84effe53c56c588e7d to your computer and use it in GitHub Desktop.
Save wobbol/c5fc570dc3807b84effe53c56c588e7d to your computer and use it in GitHub Desktop.
## put this at the bottom of your ~/.bashrc
##
[[ -n ${TMUX} ]] && return
[[ -n ${FALLBACK_SHELL} ]] && return
[[ ${TERM} != "linux" ]] && return
if [[ "$(tty)" = /dev/tty1 ]]; then
return
fi
exec ~/bin/bgterm -- tmux -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment