Skip to content

Instantly share code, notes, and snippets.

@wwalker
Created December 9, 2019 00:29
Show Gist options
  • Save wwalker/a07c7cb8d23fee7103521960ca284411 to your computer and use it in GitHub Desktop.
Save wwalker/a07c7cb8d23fee7103521960ca284411 to your computer and use it in GitHub Desktop.
tmux attach behaves differently than tmux
wwalker@polonium:~ ✓ $ echo $TERM
xterm-256color
wwalker@polonium:~ ✓ $ pgrep tmux
wwalker@polonium:~ ✘ $ tmux attach
[exited]
wwalker@polonium:~ ✓ $ # TERM in tmux was screen
wwalker@polonium:~ ✓ $ pgrep tmux
wwalker@polonium:~ ✘ $ tmux
[exited]
wwalker@polonium:~ ✓ $ # TERM in tmux was screen-256color
wwalker@polonium:~ ✓ $ grep term .tmux.conf
set-option -g xterm-keys on
set -g default-terminal "screen-256color"
wwalker@polonium:~ ✓ $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment