-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
99 lines (77 loc) · 2.47 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
# tmux configuration file.
#
# Location: ~/.tmux.conf
#
# Simon Olofsson <simon@olofsson.de>
#
# Start window and pane numbering with 1
set-option -g base-index 1
set-window-option -g pane-base-index 1
# Automatically renumber windows
set-option -g renumber-windows on
# Don't detach the client when exiting the session
set-option -g detach-on-destroy off
# Set the window title
set-option -g set-titles on
# Set the prefix key to Ctrl Space
set-option -g prefix C-Space
# Unbind Space (bound to next-layout)
# It's bound by tmux-sensible to last-window
unbind-key Space
# Copy & Paste
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel "pbcopy"
## Pane keys
# Creation
unbind-key '"'
bind-key s split-window -v -c "#{pane_current_path}"
unbind-key %
bind-key v split-window -h -c "#{pane_current_path}"
# Selection
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key p last-pane
# Resizing
bind < resize-pane -L 5
bind > resize-pane -R 5
bind - resize-pane -D 5
bind + resize-pane -U 5
# Swap the current pane with the main one
bind-key m swap-pane -s 1
# Move Pane to new Window
bind-key T break-pane
# Join pane
bind-key @ command-prompt "join-pane -s '%%'"
# Synchronize Panes
bind-key C-s set-window-option synchronize-panes
set-window-option -g pane-border-status bottom
set-window-option -g pane-border-format '#{?pane_synchronized,|SYNC|,||}'
## Window Keys
# Selection
bind-key N previous-window
bind-key u next-window -a
bind-key e choose-tree
# Swap two windows
bind-key W command-prompt "swap-window -t '%%'"
# Colors
if-shell "test $(defaults read -g AppleInterfaceStyle) = 'Dark'" "set -g @rose_pine_variant 'moon'" "set -g @rose_pine_variant 'dawn'"
set -g @rose_pine_date_time '%Y-%m-%d %H:%M'
set -g @rose_pine_directory 'on'
set -g @rose_pine_bar_bg_disable 'on'
set -g @rose_pine_disable_active_window_menu 'on'
set -g @rose_pine_session_icon '🌈'
set -g @rose_pine_right_separator ' '
set -g @rose_pine_window_status_separator ' | '
set -g @rose_pine_folder_icon '📁'
set -g @rose_pine_date_time_icon '🗓️ '
run-shell ~/.tmux/rose-pine/rose-pine.tmux
set-window-option -g pane-active-border-style fg=magenta
# Set theme for Terminal
run-shell "osascript -l JavaScript $HOME/.terminal/switch-theme.js"
# tmux-fingers
run-shell ~/.tmux/tmux-fingers/tmux-fingers.tmux
set -g @fingers-key f
# tmux-sensible
run-shell ~/.tmux/tmux-sensible/sensible.tmux