Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save questionlp/dcfc89d3dfc26f2ae37be5a70fd1fd91 to your computer and use it in GitHub Desktop.
Save questionlp/dcfc89d3dfc26f2ae37be5a70fd1fd91 to your computer and use it in GitHub Desktop.
Override TERM environment variable in a tmux Session

Override TERM environment variable in a tmux Session

To override the $TERM environment variable within tmux sessions, add the following to .tmux.conf and change tmux-256color to xterm or xterm-256color.

set -g default-terminal "tmux-256color"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'

Disable mouse wheel in virtual view

set -ga terminal-overrides ',*256color*:smcup@:rmcup@'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment