forked from nateemerson/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
51 lines (41 loc) · 1.56 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
# improve colors
set -g default-terminal "screen-256color"
#soften status bar
set -g status-bg '#666666'
set -g status-fg '#aaaaaa'
# Use Mouse Scrollbar for tmux
set-option -g mouse on
# Bind prefix to Ctrl-a
unbind C-b
set -g prefix C-a
bind-key C-a send-prefix
# Start window indices at 1 rather than 0
set -g base-index 1
set-window-option -g pane-base-index 1
set -g renumber-windows on
# Keep plenty of history for scrollback
set -g history-limit 10000
# VIM keybindings for copy mode
setw -g mode-keys vi
bind-key -T copy-mode-vi v send -X begin-selection
# See: https://github.com/foreverman/dotfiles/commit/4804e6a0e49fb7579b4d8253c286ffa1b2df3864
bind-key -T copy-mode-vi y send -X copy-selection
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
# clean up status bar
set -g status-left-length 40
set -g status-fg black
set -g status-bg green
set -g status-left '[#S]'
set -g status-right "#{?pane_synchronized,--SYNCED--,} #(is-online) #(battery -t -g black) #(date '+%a, %b %d - %I:%M') "
# Smart pane switching with awareness of Vim splits.
# # See: https://github.com/christoomey/vim-tmux-navigator
# Bind pane resizing (from Chris Toomey dotfiles)
bind -n S-Left resize-pane -L 2
bind -n S-Right resize-pane -R 2
bind -n S-Down resize-pane -D 1
bind -n S-Up resize-pane -U 1
# New copy/paste that no longer requires
# reattach-to-user-namespace
# See: https://github.com/tmux-plugins/tmux-sensible/issues/42