-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtumx_conf_gregor.conf
82 lines (62 loc) · 1.78 KB
/
tumx_conf_gregor.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#
# .tmux.conf
#
# See also:
#
# http://zanshin.net/2013/09/05/my-tmux-configuration
# http://files.floriancrouzat.net/dotfiles/.tmux.conf
# https://github.com/tmuxinator/tmuxinator
# https://github.com/remiprev/teamocil
# http://robots.thoughtbot.com/love-hate-tmuxhttp://robots.thoughtbot.com/love-hate-tmux
#
# use CAPS-a instead of CTRL-B
unbind C-d
unbind C-b
set-option -g prefix 'C-a'
# fix vim escape
set -sg escape-time 0
# Clear scrollback buffer a la cmd-k in iTerm
bind C-k send-keys -R \; clear-history
# improve colors (see also tmux alias)
set -g default-terminal "screen-256color"
# set window and pane index to 1 (0 by default)
set-option -g base-index 1
setw -g pane-base-index 1
# reload ~/.tmux.conf using PREFIX r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Vi copypaste mode
set-window-option -g mode-keys vi
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
# mouse on
set -g mouse on
# hjkl pane traversal
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# jhkl pane resize (with prefix)
bind-key M-j resize-pane -D
bind-key M-k resize-pane -U
bind-key M-h resize-pane -L
bind-key M-l resize-pane -R
# split horizontally/vertically
bind -n M-v split-window
bind -n M-e split-window -h
# toggle fullscreen pane
bind -n M-f resize-pane -Z
# kill pane with q
unbind q
bind q kill-pane
# Move tab to the left or right, a la CtrlSpace +/-
bind - swap-window -t -1
bind + swap-window -t +1
# clock
set-window-option -g clock-mode-colour colour64 #green
# Tmux needs snippets...
bind 'a' send-keys -l 'caller.reject {|x| x["vendor/bundle"] || x["/.rbenv/versions/"] }.collect { |x| x.gsub(Dir.pwd, "''") }'