Created
November 26, 2012 23:12
-
-
Save jbpadgett/4151287 to your computer and use it in GitHub Desktop.
TMUX Config File
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
######################################################################### | |
######################################################################### | |
# JBPadgett's custom tmux configuration | |
# Borrowed heavily from various nice people on the internets | |
# Put everything global here: ~/.tmux.conf | |
# Put environment specific tmux config here: ~/.tmux/<purposename> | |
# Example: ~/.tmux/chef | |
######################################################################### | |
######################################################################### | |
######################################################################### | |
# Reset The Command Prefix | |
######################################################################### | |
# Not that I don't like change, but now you know screen and tmux! | |
# set the command prefix to match screen (good 'ol CTRL+a) | |
unbind C-b | |
set -g prefix C-a | |
bind-key C-a last-window | |
######################################################################### | |
# Unbindings | |
######################################################################### | |
#unbind C-b # unbind default leader key | |
######################################################################### | |
# Global options | |
######################################################################### | |
# utf8 | |
set-window-option -g utf8 on | |
# large history | |
set-option -g history-limit 10000 | |
######################################################################### | |
# Status Bar | |
######################################################################### | |
set-option -g status-utf8 on | |
set-option -g status-justify right | |
set-option -g status-bg black # colour213 # pink | |
set-option -g status-fg cyan | |
set-option -g status-interval 5 | |
set-option -g status-left-length 30 | |
set-option -g status-left '#[fg=magenta]» #[fg=blue,bold]#T#[default]' | |
set-option -g status-right '#[fg=red,bold][ TMUX-SESSION ] #[fg=cyan]»» #[fg=blue,bold]###S #[fg=magenta]%R %m-%d#(acpi | cut -d ',' -f 2)#[default]' | |
set-option -g visual-activity on | |
# Titles (window number, program name, active (or not) | |
set-option -g set-titles on | |
set-option -g set-titles-string '#H:#S.#I.#P #W #T' | |
# statusbar background to black, foreground to white | |
#set-option -g status-fg white | |
#set-option -g status-bg black | |
# set the current window name to a nice bold yellow text | |
#setw -g window-status-current-attr bold | |
#setw -g window-status-current-fg yellow | |
# hostname is printed on the left | |
set-option -g status-left-length 40 | |
set -g status-left "#H" | |
# be notified when there is activity in one of your windows | |
setw -g monitor-activity on | |
# don't rename windows automatically | |
#set-window-option -g automatic-rename off | |
######################################################################### | |
# Bindings | |
######################################################################### | |
# reload tmux conf | |
bind-key r source-file ~/.tmux.conf | |
# Navigation ------------------------------------------------------------ | |
# Pane Switching with Alt+Arrow keys | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
# Begin Mouse Section | |
# Cheating with el mouso. Pray for forgiveness. You should know why ---- | |
# Global mouse enablement (needs to be first) | |
set-window-option -g mode-mouse on | |
# Mouse pane switching | |
set-option -g mouse-select-pane on | |
set-option -g mouse-select-window on | |
# Allows terminal scorolling to not override vim/editor scrolling | |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
# Initialize custom session configs | |
#bind S source-file ~/.tmux/session1 | |
#bind s source-file ~/.tmux/session2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment