Created
October 21, 2010 02:53
-
-
Save nriley/637841 to your computer and use it in GitHub Desktop.
my initial .tmux.conf: recreates my Screen setup in large part
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
# Use ^A like Screen | |
unbind C-b | |
set -g prefix C-a | |
bind-key a send-prefix | |
## standard Screen shortcuts | |
# next sp | |
bind Space next-window | |
# status/message line colors | |
set -g status-bg blue | |
set -g status-fg white | |
setw -g window-status-current-bg black | |
setw -g window-status-current-attr bright | |
setw -g window-status-alert-bg red | |
setw -g window-status-alert-attr bright | |
set -g message-fg white | |
set -g message-bg black | |
# less cluttered status line format | |
set -g status-left "" | |
set -g status-right "| #S " | |
# need to set -current-format even though it's the same | |
setw -g window-status-format "#[bg=blue] #[default]#I #W" | |
setw -g window-status-current-format "#[bg=blue] #[default]#I #W" | |
# my ported .screenrc key bindings | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind w setw monitor-activity | |
bind K confirm-before kill-window | |
bind L set-option status | |
bind -n C-right next | |
bind -n C-left prev | |
bind \ confirm-before kill-server | |
bind "'" choose-window | |
bind A command-prompt "rename-window '%%'" | |
bind S command-prompt "rename-session '%%'" | |
bind "#" command-prompt -p 'Move window to:' "move-window -t '%%'" | |
# pull window | |
bind "v" command-prompt -p 'Move window here from:' "move-window -s '%%'" | |
# create new sessions | |
bind N new-session | |
# reload this file | |
bind . source-file ~/.tmux.conf | |
# start window indexing at one instead of zero | |
set -g base-index 1 | |
# visual beep from any window | |
set -g bell-action any | |
set -g visual-bell on | |
# pass the xterm title through | |
set -g set-titles on | |
set -g set-titles-string "#T" | |
# screen creation stuff | |
bind I neww -n irc 'exec irssi' | |
bind M neww -n Mutt 'exec mutt' | |
bind R command-prompt -p ssh "neww 'exec ssh %%'" | |
# start irssi and Mutt in a new session | |
new -d -s main -n irc 'exec irssi' | |
setw -t:1 aggressive-resize on | |
neww -d -n Mutt 'exec mutt' | |
setw -t:2 aggressive-resize on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment