Created
April 14, 2012 21:57
-
-
Save iNecas/2388059 to your computer and use it in GitHub Desktop.
tmux.conf
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
unbind C-b | |
set -g prefix F12 | |
# Use vim-like keys for moving around | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind C-h select-pane -t :- | |
bind C-l select-pane -t :+ | |
# Resize panes | |
bind H resize-pane -L 5 | |
bind J resize-pane -D 5 | |
bind K resize-pane -U 5 | |
bind L resize-pane -R 5 | |
# Start numbering at 1 | |
set -g base-index 1 | |
set -g pane-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 a send-prefix | |
# 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-)" | |
# Highlight active window | |
set-window-option -g window-status-current-bg red | |
# Use mouse to select panes: | |
setw -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on | |
# Splitting | |
bind | split-window -h | |
bind - split-window -v | |
bind y run "tmux show-buffer | perl -pe 'chomp if eof' | xclip -i -selection clipboard" | |
bind v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment