-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
69 lines (54 loc) · 1.57 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
# Set default shell to zsh
set-option -g default-shell $HOME/.local/bin/zsh
# Support true color
set -ga terminal-overrides ",xterm-256color*:Tc"
# My theme
source-file ${HOME}/.config/tmux/themes/monty.tmuxtheme
set -sg escape-time 10
# Make <C-s> the binding
set -g prefix C-s
unbind C-b
bind C-s send-prefix
# Get rid of the damn right click menu
unbind -n MouseDown3Pane
# Disable annoying/duplicate shortcuts
unbind Space # layout cycle
unbind , # rename window
unbind $ # rename session
unbind , # show windows
unbind f # find window
unbind & # kill window
unbind % # vertical split
# horizontal split
unbind \"
unbind x # kill pane
unbind + # break into window
unbind - # restore into window
# Easier renaming/moving of windows and sessions
bind-key w command-prompt -I "#W" "rename-window '%%'"
bind-key r command-prompt -I "#S" "rename-session '%%'"
bind-key e command-prompt -I "#I" "move-window -t '%%'"
# New session
bind-key v new-session
# Some splitting that makes sense and isn't out of reach
bind | split-window -h
bind - split-window -v
# Vim key binds!
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
#bind -r C-h select-window -t :-
#bind -r C-l select-window -t :+
# Vim movement to slightly adjust panes
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# Give vim bindings in copy mode
setw -g mode-keys vi
# Because people try to scroll
set -g mouse on
# I don't think I need this
## if run as "tmux attach", create a session if one does not already exist
#new-session -n $HOST