-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
69 lines (51 loc) · 1.48 KB
/
.tmux.conf
File metadata and controls
69 lines (51 loc) · 1.48 KB
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
# @nazzacodes tmux config
# Prefix/Mod key (Ctrl-a)
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# history
set -g history-limit 10000
# More intuitive split pane
bind-key | split-window -h
bind-key '\' split-window -h # ' <- fix highlighting
bind-key - split-window -v
# Vim copy mode
set -g mode-keys vi
# Moving panes with vim keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# y and p as in vim
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
# moving window with vim keys
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# resize panes with vim keys
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
# Copy/Paste to Clipboard (needs xclip)
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# Use default shell
# set-option -g default-shell $SHELL
set-option -g default-shell /bin/zsh
# Status bar position (top)
set-option -g status-position bottom
# Status bar color
set -g status-bg colour240 #234
set -g status-fg colour250
# Set default name to filepath?
set-option -g status-interval 5
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
# Mouse as expected
set -g mouse on
set -g default-terminal "tmux-256color"
# escape time (emacs vim mode switching)
set -sg escape-time 0