-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
75 lines (63 loc) · 2.39 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
# Use backtick as the prefix
# Do it just like this or you will not
# be able to use type backtick literally
unbind C-b
set -g prefix `
bind ` send-prefix
bind-key L last-window
set -g default-terminal "screen-256color"
# Start numbering at 1
set -g base-index 1
# # Scroll History
set -g history-limit 30000
#
# # Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on
#
# Basically allows for faster key repetition
set -s escape-time 0
# Set status bar
# source-file ${HOME}/.tmux/tmux-themepack/basic.tmuxtheme
# set -g @themepack 'basic'
# set -g status-justify left
# set -g status-bg black
# set -g status-fg white
# set-option -g status-interval 5
# set -g status-right-length 150
# set -g status-left ""
# set -g status-right "#[fg=green] %m-%d-%Y %H:%M #(whoami)@minimul.com " # Add space so I can see Growl notifications in full-screen mode
set -g status-right "#(/bin/bash $HOME/.tmux/kube-tmux/kube.tmux 250 colour11 colour227) "
# print colors
## for i in {0..255}; do printf "\x1b[38;5;${i}mcolour${i}\x1b[0m\n"; done
# Set | to split window horizentaly
unbind %
bind | split-window -h
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
# setw -g aggressive-resize on
# Allows us to use '<prefix>-a' <command> to send commands to a TMUX session inside
# another TMUX session
bind-key a send-prefix
# Highlight active window
# set-window-option -g window-status-current-bg red TODO 07/17/2023 - causes errors in zshell
# Fix pbcopy
# set-option -g default-command "reattach-to-user-namespace -l $SHELL" TODO 07/17/2023 - causes errors in zshell
# Turn on vi bindings in copy mode
set-option -g status-keys vi
set-window-option -g mode-keys vi
bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe "xclip -sel clip -i"
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
unbind Enter
# Move around panes vim style
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key M-7 resize-pane -t 1 -x 90
bind-key M-8 resize-pane -t 1 -x 60
bind-key M-9 resize-pane -t 1 -x 30
bind-key M-0 resize-pane -t 0 -x 30