-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
61 lines (54 loc) · 1.89 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
#------------------------------------------------
# keybindings
#------------------------------------------------
#unbind C-b
set -g prefix C-a
#bind-key C-a last-window
bind-key C-a send-prefix
unbind %
unbind '"'
bind r source-file ~/.tmux.conf \; display "tmux config reloaded!"
# use vim keybindings in copy mode
setw -g mode-keys vi
# vim's definition of horizontal/vertical split
bind v split-window -h -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# move between panes with hjkl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes like vim
bind < resize-pane -L 5
bind > resize-pane -R 5
bind - resize-pane -D 5
bind + resize-pane -U 5
#------------------------------------------------
# misc
#------------------------------------------------
set -g default-command /bin/zsh
set -g default-shell /bin/zsh
set -g default-terminal "screen-256color"
set-window-option -g xterm-keys on
#set-window-option -g utf8 on
#set-window-option -g mode-mouse off
#------------------------------------------------
# status line
#------------------------------------------------
set -g status-bg color8
set -g status-fg color10
set -g base-index 1
set-window-option -g window-status-current-style fg=colour4
set -g window-status-format "[#I:#W]"
set -g window-status-current-format "[#I:#W]"
set -g status-right "#[fg=colour10][%H:%M]"
set -g status-left ""
#------------------------------------------------
# MacOS
#------------------------------------------------
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 "reattach-to-user-namespace pbcopy"
#unbind -T copy-mode-vi Enter
#bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
#set -g default-command "reattach-to-user-namespace -l zsh"