Created
May 10, 2013 05:02
-
-
Save jmatt/5552486 to your computer and use it in GitHub Desktop.
tmux configuration.
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
#Resize on every detach (Useful on multiple sessions) | |
set-window-option -g aggressive-resize on | |
# Set the base index for windows to 1 instead of 0 | |
set -g base-index 1 | |
# # Set the base index for panes to 1 instead of 0 | |
setw -g pane-base-index 1 | |
# Set status bar | |
set -g status-bg colour235 | |
set -g status-fg colour144 | |
set -g status-left '#[fg=colour216]#(/bin/echo ${USER})' | |
set -g status-right '#[fg=colour144][#[fg=colour66]%Y-%m-%d #[fg=colour73]%H:%M#[default] #[fg=colour216]#(/bin/echo ${USER})#[fg=red,dim]@#[fg=colour216]#H#[fg=colour144]]' | |
# Set pane | |
set -g pane-border-fg colour144 | |
set -g pane-active-border-fg colour216 | |
# Monitoring and automatic-renaming | |
setw -g monitor-activity on | |
setw -g automatic-rename | |
#Allows scrollback in tmux | |
set -g terminal-overrides 'xterm-256color*:smcup@:rmcup@' | |
# hjkl recursive pane resizing | |
bind -r C-h resize-pane -L | |
bind -r C-j resize-pane -D | |
bind -r C-k resize-pane -U | |
bind -r C-l resize-pane -R | |
## enable mouse | |
set-option -g mouse-select-pane on | |
set-window-option -g mode-keys emacs | |
set-window-option -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on | |
#LONG history preferred | |
set-option -g history-limit 24000 | |
set -g status-keys emacs | |
setw -g mode-keys emacs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment