dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

.tmux.conf (1323B) [raw]


      1 # .tmux.conf
      2 set-option -g history-limit 10000
      3 set-option -g mode-keys vi
      4 set-option -g mouse on
      5 set-option -g set-clipboard off
      6 
      7 # copy-command doesn't exist on older versions
      8 # set-option -g copy-command 'xclip -in -selection clipboard'
      9 
     10 # better prefix
     11 set-option -g prefix C-a
     12 unbind-key C-b
     13 bind-key C-a send-prefix
     14 
     15 # Less delay on pressing escape (for vim)
     16 set-option -sg escape-time 10
     17 
     18 # Navigate splits based on vi-keys
     19 bind-key C-h select-pane -L
     20 bind-key C-j select-pane -D
     21 bind-key C-k select-pane -U
     22 bind-key C-l select-pane -R
     23 
     24 # vi-like selection in copy-mode
     25 bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
     26 bind-key -T copy-mode-vi v send-keys -X begin-selection
     27 
     28 # hotkeys to search for urls / file paths
     29 bind-key H copy-mode \; send-keys -X search-backward "http[^ ]*"
     30 bind-key P copy-mode \; send-keys -X search-backward "[^ :@#]*/[^:@# ]*"
     31 
     32 # Use | and - for more intuitive splits (in the same location!)
     33 bind-key | split-window -c "#{pane_current_path}" -h
     34 bind-key - split-window -c "#{pane_current_path}" -v
     35 bind-key c new-window -c "#{pane_current_path}"
     36 
     37 # Start numbers at 1 (like the keyboard), and reorder on close
     38 set-option -g base-index 1
     39 set-option -g renumber-windows on
     40 
     41 if-shell "test -e ~/.tmux.conf.local" "source-file ~/.tmux.conf.local"