public
Created

  • Download Gist
tmux.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
#
# ~/.tmux.conf
#
 
# Set action key to C-a, like screen.
unbind C-b
set -g prefix C-a
 
# Start numbering at 1
set -g base-index 1
 
# Allows for faster key repetition
set -s escape-time 0
 
# Switch to last active window
bind-key C-a last-window
 
# Resize pane with arrow keys
# -r: can be repeated without pressing prefix
# again (500ms after last '-r' action or prefix)
unbind Left
unbind Right
unbind Down
unbind Up
bind -r Left resize-pane -L 2
bind -r Right resize-pane -R 2
bind -r Down resize-pane -D 2
bind -r Up resize-pane -U 2
 
# 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
 
# Reload config without killing server
bind R source-file ~/.tmux.conf \; display-message " Config reloaded..."
 
# Capture mouse
# mouse-select-pane [on | off]
# # If on, tmux captures the mouse and when a window is
# # split into multiple panes the mouse may be used to
# # select the current pane. The mouse click is also
# # passed through to the application as normal.
# #
set -g mouse-select-pane on
 
# Easier to remember split commands
unbind %
bind | split-window -h
bind - split-window -v
 
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=yellow]#H'
set -g status-right '#[fg=yellow]#(uptime | cut -d "," -f 3-)'
#set -g status-right '#[fg=yellow]#(uptime)'
 
# highlight active window
set-window-option -g window-status-current-bg red
 
# Automatically set window title
setw -g automatic-rename
 
# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.