Created
September 29, 2011 22:26
-
-
Save iansheridan/1252111 to your computer and use it in GitHub Desktop.
a sample config file for Tmux
This file contains hidden or 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
# Last modified: 2011 Sep 14 | |
# Author: Florian CROUZAT <[email protected]> | |
# Feel free to do whatever you want with this file. | |
# Just make sure to credit what deserve credits. | |
# Binds {{{ | |
# Prefix | |
unbind C-b | |
set-option -g prefix C-a | |
bind a send-prefix | |
# Last active window | |
unbind l | |
bind C-a last-window | |
# hsplit | |
unbind % | |
bind | split-window -h | |
# vsplit | |
unbind '"' | |
bind - split-window -v | |
# Copy mode | |
unbind [ | |
unbind ] | |
bind Escape copy-mode | |
bind p paste-buffer | |
# Panes | |
bind up resize-pane -U 10 | |
bind down resize-pane -D 10 | |
bind left resize-pane -L 10 | |
bind right resize-pane -R 10 | |
bind tab next-layout | |
unbind C-o | |
bind r rotate-window | |
bind space select-pane -t:.+ | |
# Monitor Activity | |
bind m set-window-option monitor-activity | |
# Commands | |
bind / command-prompt -p "man page: " "split-window 'exec man %%'" | |
bind v command-prompt -p "vim: " "split-window 'exec vim %%'" | |
bind s command-prompt -p "ssh: " "new-window -n %1 'ssh %1'" | |
# }}} | |
# Titles {{{ | |
set-window-option -g automatic-rename on | |
setw -g mode-mouse on | |
# }}} | |
# Options {{{ | |
set-option -g base-index 1 | |
set-option -g display-time 8000 | |
set-option -g mouse-select-pane on | |
set-option -g mouse-select-window on | |
set-option -g pane-active-border-fg blue | |
set-option -g pane-active-border-bg black | |
#set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@" | |
set-option -g pane-border-fg white | |
set-option -g pane-border-bg black | |
#set-option -g default-shell /bin/bash | |
set-option -g status-keys vi | |
set-option -g history-limit 8192 | |
set-option -s escape-time 100 | |
# }}} | |
# Status Bar {{{ | |
set-option -g status-interval 1 | |
set-option -g status-left '___' | |
set-option -g status-right "#T" | |
set-option -g status-utf8 on | |
set-option -g status-justify left | |
set-option -g status-bg black | |
set-option -g status-fg white | |
set-option -g status-left-length 20 | |
# }}} | |
# Colors {{{ | |
set-window-option -g mode-keys vi | |
set-window-option -g mode-mouse on | |
set-window-option -g monitor-activity off | |
set-window-option -g monitor-content off | |
set-window-option -g window-status-current-bg green | |
set-window-option -g window-status-current-fg black | |
set-window-option -g window-status-bg white | |
set-window-option -g window-status-fg black | |
set-window-option -g window-status-alert-fg red | |
set-window-option -g window-status-alert-bg white | |
set-window-option -g clock-mode-colour yellow | |
set-window-option -g clock-mode-style 24 | |
set-window-option -g utf8 on | |
# }}} | |
# vim:set ft=tmux: |
This file contains hidden or 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
# C-b is not acceptable -- Vim uses it | |
set-option -g prefix C-a | |
bind-key C-a last-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 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
added a second alternative config file for reference. (whoops first file got over written)