Created
December 30, 2011 09:44
-
-
Save CarlQLange/1539027 to your computer and use it in GitHub Desktop.
My .tmux.conf
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
#because C-b is surprisingly hard to hit | |
set -g prefix C-a | |
#on server start, make a new window and split it in half | |
new | |
splitw | |
#then select the first pane | |
select-pane -t 0 | |
#and split it with a vertical seperator | |
select-layout even-horizontal | |
#don't zero-index the windows - start at 1 instead. | |
set -g base-index 1 | |
#white-on-black statusbar | |
set -g status-bg black | |
set -g status-fg white | |
#puts the currently playing iTunes song in the statusbar | |
set -g status-right '#[fg=white]#(osascript ~/bin/currenttrack.applescript)' | |
#black-on-white messages | |
set -g message-bg white | |
set -g message-fg black | |
#this actually doesn't work in Terminal.app | |
#but if it did, it would allow me to click a pane to select it | |
set -g mouse-select-pane on | |
#if the window has activity, notify me | |
setw -g monitor-activity on | |
set -g visual-activity on | |
#current window title black-on-white | |
set-window-option -g window-status-current-bg white | |
set-window-option -g window-status-current-fg black | |
#changes the active pane seperator to red from the default green | |
#the rest are white (iirc you change that with pane-border-fg) | |
#for a thicker seperator you can just use bg instead of fg | |
set-option -g pane-active-border-fg red | |
#renames the window title to the currently running process | |
#(or use C-a , to set the title) | |
setw -g automatic-rename on | |
#refreshes the statusbar every second (could be longer than this really) | |
set -g status-interval 1 | |
#shortcuts | |
bind * kill-pane | |
unbind % | |
bind | split-window -h | |
unbind '"' | |
bind - split-window -v | |
bind / command-prompt -p "man page: " "split-window 'exec man %%'" | |
#force colours | |
set -g default-terminal "xterm-256color" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment