-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
135 lines (112 loc) · 3.68 KB
/
.tmux.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Tmux configuration
set -g -a terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
# keybindings {{{
# use C-Space instead of C-b
unbind C-b
set -g prefix C-Space
bind Space send-prefix
bind r source-file ~/.tmux.conf
# new window in current path
bind c new-window -c "#{pane_current_path}"
# window split into panes
bind '-' split-window -v -c '#{pane_current_path}'
bind '|' split-window -h -c '#{pane_current_path}'
# use the vim motion keys to move between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key C-a last-window
# swap panes
bind M-j swap-pane -D
bind M-k swap-pane -U
# resize panes
bind < resize-pane -L 8
bind > resize-pane -R 8
# some remapings to switch around windows
unbind x
#unbind q
bind Q kill-pane
bind M-q kill-pane
bind L display-pane
unbind }
unbind {
bind } next-window
bind { previous-window
bind x next-window
bind z previous-window
# use arrow keys to switch / create windows
# bind -n S-down new-window
# bind -n S-left prev
# bind -n S-right next
# bind -n C-left swap-window -t -1
# bind -n C-right swap-window -t +1
# window (re)name
unbind n
bind n command-prompt -I '#W' "rename-window '%%'"
# session switcher
unbind .
unbind ,
bind , switch-client -p
bind . switch-client -n
# copy mode: C-Space Space and vi keys
unbind [
unbind p
bind Space copy-mode
bind C-Space copy-mode
#bind-key -t vi-copy 'v' begin-selection
# bind-key -t vi-copy 'y' copy-selection
# bind-key -t vi-copy y copy-pipe "xsel -i -p -b -s"
# bind p paste-buffer
bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
# urlview
bind-key C-b capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer"'
# shortcut: type :w and change to last window
#bind-key m send-keys ":w" C-m \; last-window
# }}}
# general options {{{
#set -g default-command "${SHELL}"
#set -g default-shell "/usr/bin/fish"
set -g history-limit 10000
set -g mouse off
setw -g renumber-windows on
set -sg escape-time 0
#setw -g monitor-activity on
#set -g visual-activity on
setw -g automatic-rename
setw -g mode-keys vi
set -g default-terminal "screen-256color"
set -g set-titles on
#set -g set-titles-string "#T"
# }}}
# status bar {{{
# This tmux statusbar config was created by tmuxline.vim
# on Mon, 19 Sep 2016
set -g status-bg "colour67"
set -g message-command-fg "colour253"
set -g status-justify "left"
set -g status-left-length "100"
set -g status "on"
set -g pane-active-border-fg "colour144"
set -g message-bg "colour16"
set -g status-right-length "100"
set -g status-right-attr "none"
set -g message-fg "colour253"
set -g message-command-bg "colour16"
set -g status-attr "none"
#set -g status-utf8 "on"
set -g pane-border-fg "colour16"
set -g status-left-attr "none"
setw -g window-status-fg "colour253"
setw -g window-status-attr "none"
setw -g window-status-activity-bg "colour67"
setw -g window-status-activity-attr "none"
setw -g window-status-activity-fg "colour144"
setw -g window-status-separator ""
setw -g window-status-bg "colour67"
set -g status-left "#[fg=colour232,bg=colour144] #S #[fg=colour144,bg=colour67,nobold,nounderscore,noitalics]"
set -g status-right "#[fg=colour16,bg=colour67,nobold,nounderscore,noitalics]#[fg=colour253,bg=colour16] %Y-%m-%d %H:%M #[fg=colour144,bg=colour16,nobold,nounderscore,noitalics]#[fg=colour232,bg=colour144] #h "
setw -g window-status-format "#[fg=colour253,bg=colour67] #I #[fg=colour253,bg=colour67] #W "
setw -g window-status-current-format "#[fg=colour67,bg=colour16,nobold,nounderscore,noitalics]#[fg=colour253,bg=colour16] #I #[fg=colour253,bg=colour16] #W #[fg=colour16,bg=colour67,nobold,nounderscore,noitalics]"
# }}}
# vim: foldenable foldmethod=marker