forked from justone/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
65 lines (52 loc) · 1.63 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
unbind C-b
set -g prefix C-a
bind b send-prefix
#set -g default-terminal "screen-256color"
set -g mode-style "bg=#586e75,fg=#002b36"
# powerline
if-shell "if [[! $(pgrep powerline-daemon)]]; then true; else false; fi" "run-shell powerline-daemon -q"
#if-shell "$POWERLINE_CONFIG_COMMAND"\
# run-shell "$POWERLINE_CONFIG_COMMAND tmux setup"
run-shell "powerline-config tmux setup"
# everything gets better with vim bindings
setw -g mode-keys vi
unbind n
unbind p
bind . next-window
bind , previous-window
# copy & paste
unbind [
bind Escape copy-mode
bind p paste-buffer
unbind -T copy-mode-vi 'v'
unbind -T copy-mode-vi 'y'
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel '$HOME/bin/copy'
#bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# we want color ffs
set -g default-terminal "screen-256color"
# we also want mouse
# set -g mouse-utf8 on
set -g mouse on
set -g history-limit 30000
# delay
set -s escape-time 10
# moving window easy way
bind-key m command-prompt -p "move window to:" "swap-window -t '%%'"
# not-so-easy to type, but easier to remember
unbind %
bind c new-window -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind k select-pane -U
bind l select-pane -R
bind j select-pane -D
bind h select-pane -L
# resize panes
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Initialize tmux plugin manager
run -b '~/.tmux/plugins/tpm/tpm'
#set -g @plugin 'seebi/tmux-colors-solarized'