-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
56 lines (42 loc) · 1.37 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
# Load the right shell.
set -g default-command 'zsh -i'
#Get a better prefix
set-option -g prefix C-a
# I'll need the mouse for now.
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
# Unbind default keybindings.
unbind %
unbind ,
unbind .
unbind n
unbind p
unbind [
unbind '"'
unbind l
unbind &
unbind "'"
# And apply some more awesome bindings.
#bind-key c new-window \; command-prompt -p "Name: " "rename-window '%%'"
#bind-key C new-window -n ''
#bind-key n command-prompt 'rename-window %%'
bind-key | split-window -h
bind-key - split-window -v
bind-key x kill-pane
bind-key X kill-window
bind-key q confirm-before kill-session
bind-key Q confirm-before kill-server
bind-key r source-file ~/.tmux.conf; display-message " ✱ ~/.tmux.conf is reloaded"
#bind-key R refresh-client
#bind-key y copy-mode
#bind-key Y run-shell "tmux save-buffer - | reattach-to-user-namespace pbcopy"
#bind-key p paste-buffer
#bind h select-pane -L
#bind j select-pane -D
#bind k select-pane -U
#bind l select-pane -R
#bind + run "if [[ $(tmux list-window) =~ tmux-zoom ]]; then tmux last-window; tmux swap-pane -s tmux-zoom.0; tmux kill-window -t tmux-zoom; else tmux new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read'; tmux swap-pane -s tmux-zoom.0; tmux select-window -t tmux-zoom;fi"
bind-key , previous-window
bind-key . next-window