Skip to content

Instantly share code, notes, and snippets.

@kurrik
Last active April 18, 2020 03:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurrik/ec0a83cf568b9c16b8ce08dd407adf65 to your computer and use it in GitHub Desktop.
Save kurrik/ec0a83cf568b9c16b8ce08dd407adf65 to your computer and use it in GitHub Desktop.
Remote .tmux.conf (handles nesting, different colors)
# Install:
# curl https://gist.githubusercontent.com/kurrik/ec0a83cf568b9c16b8ce08dd407adf65/raw/.tmux.conf > ~/.tmux.conf
#
# Instructions:
# When nested, use an extra `ctrl-b` to issue commands to the nested session.
# E.g. to go to the next window `ctrl-b ctrl-b ctrl-n`
# Colors
set -g default-terminal "xterm-256color"
# Mouse stuff
set -g mode-mouse on
set -g mouse-select-window on
set -g mouse-select-pane on
set -g mouse-resize-pane on
# Start a new session if one doesn't exist
# https://coderwall.com/p/aohfrg/smux-ssh-with-auto-reconnect-tmux-a-mosh-replacement
new-session -s main
######################
### DESIGN CHANGES ###
######################
# Panes
set -g pane-border-fg black
set -g pane-active-border-fg brightred
## Status bar design. Nested session is red.
set -g status-bg red
set -g status-fg default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment