Created
May 31, 2012 17:49
-
-
Save isomorphisms/2845019 to your computer and use it in GitHub Desktop.
my 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
# You're meant to read through this | |
# configuraton file rather than simply | |
# copying it to your home directory. | |
# | |
# There are some places where you're | |
# meant to uncomment something if you | |
# want to use it in your TMUX. | |
# | |
# I hope it's readable. | |
# | |
# | |
# TUTORIAL | |
# most useful beginners' commands in TMUX | |
# | |
# precede each with Ctrl+b | |
# | |
bind c new-window | |
bind % split-window -h | |
#bind , rename current window #‡ the command; just describes it | |
bind l last-window | |
bind w choose-window | |
bind ? list-keys | |
# | |
# end TUTORIAL | |
# | |
# enable mouse scroll wheel | |
# setw -g mode-mouse on | |
# ... and ... | |
# set -g mouse-select-pane on | |
# set -g mouse-resize-pane on | |
# | |
# Sometimes (like on line 65) it would be natural | |
# to remap a key to make tmux more vimlike. But | |
# there is already a sensible default in the way, | |
# so I've noted the idea behind a # and noted the | |
# better idea that's in the way, even though that | |
# redundantly reconfigures TMUX to its default, again. | |
# | |
# This way if you decide you would rather bind l to →, | |
# you won't forget what it originally meant. (Just | |
# switch which option is commented.) | |
# | |
#vimlike left,right,up,down keybindings | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
#bind l select-pane -R | |
bind l last-window #just reminding you | |
#for window movement as well | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
bind -r C-h previous-window | |
bind -r C-l next-window | |
#window size as well | |
bind H resize-pane -L 5 | |
bind J resize-pane -U 5 | |
bind K resize-pane -D 5 | |
#bind L resize-pane -R 5 | |
bind L last-session #just reminding you | |
#vimlike scrolling in copy mode | |
setw -g mode-keys vi | |
# space starts copying, enter finishes copying | |
#vimlike handle Prefix 3 C-h selects 3 windows to the right | |
# vimlike — if we're using h,l for ←,→ then n,p can be remapped to other useful things | |
# more visually intuitive horiz/vert split | |
bind | split-window -h | |
#bind - split-window -v | |
bind - delete-buffer | |
# if lowercase o is the default forwards, then uppercase O could be backwards | |
bind o select-pane -t :.+ | |
bind O select-pane -t :.- | |
bind ; last-pane #just reminding you | |
# 256 colours | |
#set -g default-terminal "screen-256color" | |
# | |
# different colour for the active pane | |
# these are colours I like in my 8-colour virtual console | |
# | |
#setw -g window-status-current-bg red | |
setw -g window-status-current-bg blue | |
# different colour for alerts | |
set -g message-bg yellow | |
setw -g monitor-activity on | |
set -g visual-activity on | |
#set -g status-utf8 onk:w | |
# copying / yanking | |
#bind capture-pane | |
#bind copy-mode\; 0\; space\; $\; enter # yank line | |
#bind -t vi-copy 'v' begin-selection | |
#bind -t vi-copy 'y' copy-selection | |
#unbind p | |
#bind p paste-buffer | |
# integrate tmux copy buffer with xclip | |
#bind C-c run "tmux save-buffer - | xclip -i -b -sel" | |
#bind C-v run "tmux set-buffer \"$(xclip -o -b -sel)\"; tmux paste-buffer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment