Created
November 14, 2012 11:29
-
-
Save Ludonaut/4071641 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# ~/.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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment