-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
37 lines (32 loc) · 983 Bytes
/
.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
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind a send-prefix
bind Z send-keys -R
bind ^a last-window
bind k confirm-before -p "kill-window #W? (y/n)" kill-window
unbind &
# Setup copy mode to be more screen-like
set-window-option -g mode-keys emacs
set-window-option -g remain-on-exit on
bind -T copy-mode ^u send-keys -X page-up
bind -T copy-mode ^d send-keys -X page-down
set -g default-terminal "screen-256color"
if-shell '[[ $(uname -s) = Darwin ]]' {
if-shell '[[ $(uname -m) = arm64 ]]' {
set -g default-command "/opt/homebrew/bin/reattach-to-user-namespace -l /opt/homebrew/bin/bash -l"
}
if-shell '[[ $(uname -m) = x86_64 ]]' {
set -g default-command "/usr/local/bin/reattach-to-user-namespace -l /usr/local/bin/bash -l"
}
}
new-session -A -s main
new-window -t main:1
new-window -t main:2
new-window -t main:3
new-window -t main:4
new-window -t main:5
new-window -t main:6
new-window -t main:7
new-window -t main:8
new-window -t main:9