Created
November 21, 2011 04:19
-
-
Save matthewstory/1381596 to your computer and use it in GitHub Desktop.
goodbye screen, hello tmux
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 | |
## | |
## first pass at a .tmux.conf to make transition from | |
## gnu screen bearable | |
########################################################### | |
# screenesque prefix | |
set -g prefix C-a | |
bind C-a send-prefix | |
# use vi-style | |
set-window-option -g mode-keys vi # vi key | |
set-option -g status-keys vi | |
# use utf8 by default | |
set-window-option -g utf8 on # utf8 support | |
# turn off the mouse | |
set-window-option -g mode-mouse off # disable mouse | |
# change split bindings | |
unbind % | |
bind | split-window -h | |
unbind '"' | |
bind - split-window -v | |
# vi-style directional nav for panes | |
bind h select-pane -L | |
bind l select-pane -R | |
bind j select-pane -D | |
bind k select-pane -U | |
# auto-rename window to active proc | |
set-window-option -g automatic-rename on | |
#status-bar like screen | |
set -g status-bg cyan | |
set -g status-fg black | |
set -g status-right-length 60 | |
set -g status-right-fg cyan | |
set -g status-right-bg black | |
set -g status-right '#[] [#S] %a %Y-%m-%d #[fg=yellow,bold]%H:%M#[default]#(uptime | cut -d : -f 4 | sed s/,//g) ' | |
set -g status-left-length 0 | |
set -g status-left '' # no status-left bar | |
# window status stuff, again like screen | |
set-window-option -g window-status-format '#I: #W#F' | |
# current window settings | |
set-window-option -g window-status-current-bg black | |
set-window-option -g window-status-current-fg yellow | |
set-window-option -g window-status-current-format '#[bold] #I: #W ' | |
# color prefs for pane, matching status bar | |
set -g pane-active-border-bg black | |
set -g pane-active-border-fg yellow | |
set -g pane-border-bg black | |
set -g pane-border-fg cyan | |
# bell settings -- turn off sound | |
set -g visual-bell on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment