-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
125 lines (113 loc) · 4.43 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
##############################
# _
# | |_ _ __ ___ _ ___ __
# | __| '_ ` _ \| | | \ \/ /
# | |_| | | | | | |_| |> <
# \__|_| |_| |_|\__,_/_/\_\
#
#############################
############################################################################
# Reset Prefix
############################################################################
set -g prefix C-s
bind-key a send-prefix # for nested tmux sessions
############################################################################
# Global options
############################################################################
# large history
set-option -g history-limit 10000000
# utf8 support
# set-window-option -g utf8 on
# Escape Time
set -sg escape-time 20
# colors
setw -g mode-style bg=black
set-option -g default-terminal "xterm-256color" #"xterm-256color" # "screen-256color"
set-option -g pane-active-border-style fg=green
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
# don't rename windows automatically
set-option -g allow-rename off
# reset base index
set -g base-index 1
set -g pane-base-index 1
# basic settings
set-window-option -g xterm-keys on # for vim
set-window-option -g mode-keys vi # vi key
############################################################################
# Unbindings
############################################################################
unbind '"' # unbind horizontal split
unbind % # unbind vertical split
# Update default binding of `Enter` to also use copy-pipe
unbind -T copy-mode-vi Enter
############################################################################
# Bindings
############################################################################
# reload tmux conf
bind-key r source-file ~/.tmux.conf
# new split in current pane (horizontal / vertical)
bind-key - split-window -v # split pane horizontally
bind-key \\ split-window -h # split pane vertically
# Setup 'v' to begin selection as in Vim
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
############################################################################
# panes
############################################################################
# Navigation ---------------------------------------------------------------
# use the vim motion keys to move between panes
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Resizing ---------------------------------------------------------------
bind-key C-h resize-pane -L 5
bind-key C-j resize-pane -D 5
bind-key C-k resize-pane -U 5
bind-key C-l resize-pane -R 5
# use vim motion keys while in copy mode
setw -g mode-keys vi
############################################################################
# status bar
############################################################################
# set -g status-position bottom
# set -g status-bg colour234
# set -g status-fg colour137
# set -g status-style dim
# set -g status-left ''
# set -g status-right '#[fg=colour233,bg=colour241,bold] %m/%d/%Y #[fg=colour233,bg=colour245,bold] %r '
# set -g status-right-length 50
# set -g status-left-length 20
#
# setw -g window-status-current-style fg=colour81
# # setw -g window-status-current-bg colour238
# setw -g window-status-current-style bold
# setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
#
# setw -g window-status-style fg=colour138
# setw -g window-status-style bg=colour235
# setw -g window-status-style none
# setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
#
# setw -g window-status-bell-style bold
# setw -g window-status-bell-style fg=colour255
# setw -g window-status-bell-style bg=colour1
#
# set -g message-style bold
# set -g message-style fg=colour232
# set -g message-style bg=colour166
############################################################################
# TPM
############################################################################
set-option -g default-command /usr/local/bin/fish
set-option -g default-shell /usr/local/bin/fish
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'hoshiya4522/tokyo-night-tmux'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tassaron/tmux-df'
set -g @plugin 'thewtex/tmux-mem-cpu-load'
# run '/opt/homebrew/opt/tpm/share/tpm/tpm'
run '/usr/local/opt/tpm/share/tpm/tpm'