Skip to content

Instantly share code, notes, and snippets.

@paraita
Created February 19, 2025 20:10
Show Gist options
  • Save paraita/51414ccbab8dd2107e176b586fc7ae7c to your computer and use it in GitHub Desktop.
Save paraita/51414ccbab8dd2107e176b586fc7ae7c to your computer and use it in GitHub Desktop.
For vanilla Tmux 1.8 on RHEL
set -g default-terminal "screen-256color"
# send the prefix to client inside window (ala nested sessions)
bind-key a send-prefix
# disable wait after escape, so vim is usable
set -sg escape-time 0
# in copy mode, use vi bindings and make the mouse work
setw -g mode-keys vi
setw -g mode-mouse on
set -g mouse-select-pane on
# scrollback buffer n lines
set -g history-limit 24000
# bells and monitoring
# set -g bell-action any
set -g visual-bell off
set -g visual-activity off
set -g visual-silence on
# This was removed -- what happened to it?
# set -g visual-content on
#set -g status-right "#H #[fg=cyan][#(uptime|cut -d ' ' -f 12-)]#[default]"
set -g status-right '#{cpu_bg_color} CPU: #{cpu_icon} #{cpu_percentage} | %a %h-%d %H:%M '
#set -g status-right '#{battery_icon} #{battery_percentage} #{battery_remain} | %a %h-%d %H:%M '
# set -g message-attr bold
# set -g message-fg black
# set -g message-bg yellow
set -g window-status-format "#I:#W "
set -g window-status-current-format "#I:#W °"
set -g status-utf8 on
set -g status-left '#[fg=blue]#S #[fg=brightblack]•#[default]'
# try to set wm window titles with xterm codes
set -g set-titles on
# wm window title string (uses statusbar variables)
# set -g set-titles-string "#I:#W"
# Zero-based indexing for windows and panes isn't terribly sensible.
set -g base-index 1
setw -g pane-base-index 1
# the panes display and status messages don't show very long by default
set -g display-panes-time 2000
set -g display-time 2000
# If we want Vim to be told about focus: http://git.io/2UqSgQ
#set -g focus-events on
bind -n S-M-Left previous-window
bind -n S-M-Right next-window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment