Skip to content

Commit d49ec90

Browse files
author
sølve
committed
added tmux.
0 parents  commit d49ec90

File tree

8 files changed

+19530
-0
lines changed

8 files changed

+19530
-0
lines changed

plugins/catppuccin-tmux

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit b4e0715356f820fc72ea8e8baf34f0f60e891718

plugins/tmux-sensible

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 25cb91f42d020f675bb0a2ce3fbd3a5d96119efa

plugins/tmux-yank

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit acfd36e4fcba99f8310a7dfb432111c242fe7392

plugins/tpm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 99469c4a9b1ccf77fade25842dc7bafbc8ce9946

plugins/vim-tmux-navigator

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 38b1d0402c4600543281dc85b3f51884205674b6

tmux-client-41522.log

Lines changed: 315 additions & 0 deletions
Large diffs are not rendered by default.

tmux-server-41524.log

Lines changed: 19158 additions & 0 deletions
Large diffs are not rendered by default.

tmux.conf

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
set-option -sa terminal-overrides ",xterm*:Tc"
2+
set -g mouse on
3+
4+
unbind C-b
5+
set -g prefix C-Space
6+
bind C-Space send-prefix
7+
8+
# Vim style pane selection
9+
bind h select-pane -L
10+
bind j select-pane -D
11+
bind k select-pane -U
12+
bind l select-pane -R
13+
14+
# Start windows and panes at 1, not 0
15+
set -g base-index 1
16+
set -g pane-base-index 1
17+
set-window-option -g pane-base-index 1
18+
set-option -g renumber-windows on
19+
20+
# Use Alt-arrow keys without prefix key to switch panes
21+
bind -n M-Left select-pane -L
22+
bind -n M-Right select-pane -R
23+
bind -n M-Up select-pane -U
24+
bind -n M-Down select-pane -D
25+
26+
# Shift arrow to switch windows
27+
bind -n S-Left previous-window
28+
bind -n S-Right next-window
29+
30+
# Shift Alt vim keys to switch windows
31+
bind -n M-H previous-window
32+
bind -n M-L next-window
33+
34+
set -g @catppuccin_flavour 'mocha'
35+
36+
set -g @plugin 'tmux-plugins/tpm'
37+
set -g @plugin 'tmux-plugins/tmux-sensible'
38+
set -g @plugin 'christoomey/vim-tmux-navigator'
39+
set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
40+
set -g @plugin 'tmux-plugins/tmux-yank'
41+
42+
run '~/.tmux/plugins/tpm/tpm'
43+
44+
# set vi-mode
45+
set-window-option -g mode-keys vi
46+
# keybindings
47+
bind-key -T copy-mode-vi v send-keys -X begin-selection
48+
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
49+
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
50+
51+
bind '"' split-window -v -c "#{pane_current_path}"
52+
bind % split-window -h -c "#{pane_current_path}"

0 commit comments

Comments
 (0)