Skip to content

Instantly share code, notes, and snippets.

@iagopiimenta
Created September 29, 2015 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iagopiimenta/c8a42117d78c4af73c0b to your computer and use it in GitHub Desktop.
Save iagopiimenta/c8a42117d78c4af73c0b to your computer and use it in GitHub Desktop.
.tmux.conf
#
# Tmux configuration
#
# See:
# http://github.com/brandur/tmux-extra
#
# C-b is not acceptable -- Vim uses it
# set-option -g prefix C-b
# bind-key C-b next-window
# Start numbering at 1
set -g base-index 1
# Allows for faster key repetition
# set -s escape-time 0
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left ""
set -g status-right "#[fg=green]#H"
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
#setw -g aggressive-resize on
# Allows us to use C-a a <command> to send commands to a TMUX session inside
# another TMUX session
# bind-key b send-prefix
# Highlight active window
set-window-option -g window-status-current-bg red
# Examples
# --------
# Activity monitoring
#setw -g monitor-activity on
#set -g visual-activity on
# Example of using a shell command in the status line
#set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)"
### My settings
# set-window-option -g mode-mouse on
# Make mouse useful in copy mode
# setw -g mode-mouse on
# Allow mouse to select which pane to use
# set -g mouse-select-pane on
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"
# Scroll History
# set -g history-limit 300000
# Set ability to capture on start and restore on exit window data when running an application
# setw -g alternate-screen on
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
# set -s escape-time 50
# switch windows alt+number
bind-key -n M-1 select-window -t 1
bind-key -n M-2 select-window -t 2
bind-key -n M-3 select-window -t 3
bind-key -n M-4 select-window -t 4
bind-key -n M-5 select-window -t 5
bind-key -n M-6 select-window -t 6
bind-key -n M-7 select-window -t 7
bind-key -n M-8 select-window -t 8
bind-key -n M-9 select-window -t 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment