-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
65 lines (50 loc) · 1.91 KB
/
.tmux.conf
File metadata and controls
65 lines (50 loc) · 1.91 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
# NEW OPTIONS FOR GRUBVOX THEME
set -g status-position bottom
setw -g xterm-keys on
setw -g window-status-style bg=default,fg="#666666"
setw -g window-status-current-style bg=default,fg=red
set -g status-style bg=default,fg=white,default
set -g message-style bg=black,fg=white,bright
set -g status-left " "
set -g status-justify left
setw -g window-status-format " #W "
setw -g window-status-current-format " #W "
set -g status-right " "
# Increase repeat time for repeatable commands
set -g repeat-time 1000
# Decrease command delay (increases vim responsiveness)
set -s escape-time 0
# Keep plenty of history for scrollback
set -g history-limit 10000
# Mouse on
set -g mouse on
# Use 256 term for pretty colors
set -g default-terminal "screen-256color"
# Change prefix
set -g prefix C-a
bind C-a send-prefix
unbind C-b
# Reload tmux conf
bind r source-file ~/.tmux.conf\; display "Reloaded!"
# Open new windows in current path
bind-key c new-window -c "#{pane_current_path}"
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
# Renumber windows each time one is closed
set -g renumber-windows on
# Don't automatically rename windows
set -g allow-rename off
# Split window
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# For https://github.com/tmux-plugins/vim-tmux-focus-events
set -g focus-events on
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Integrate tmux copy with macos.
# This assumes previous: brew install reattach-to-user-namespace
# We check that 'reattach-to-user-namespace' is installed first.
if-shell "hash reattach-to-user-namespace" \
"bind -T copy-mode-vi y send -X copy-pipe-and-cancel \"reattach-to-user-namespace pbcopy\"; bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel \"reattach-to-user-namespace pbcopy\"" \
"bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel"