-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
96 lines (74 loc) · 2.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
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
# Tmux Konfiguration
# Author: Viktor Herzog
# GitHub: https://github.com/vhstack/tmuxpp
# Terminal auf True Color setzen (24-bit)
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:Tc"
# Globale Prefix Taste von 'C-b' zu 'C-a' setzen
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Notifications
setw -g monitor-activity on
set -g visual-activity off
set -g bell-action none
# Automatisch Fenster umbenennen
setw -g automatic-rename
# Sortieren nach Name
bind s choose-tree -sZ -O name
# Index ab 1 (statt 0)
set -g base-index 1
setw -g pane-base-index 1
# Fenster splitten mit | und -
bind | split-window -h
bind - split-window -v
bind N break-pane
unbind '"'
unbind %
# Reload Konfiguration
bind r source-file ~/.tmux.conf \; display-message "Tmux config reloaded!"
# Zwischen Fenstern mit Alt+Richtung wechseln
bind -n M-Right next-window
bind -n M-Left previous-window
# Fenster verschieben
bind -n C-M-Right swap-window -t +1 \; select-window -t +1
bind -n C-M-Left swap-window -t -1 \; select-window -t -1
# Fenster vergrößern/verkleinern
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
# Scroll Copy Modus mit Strg-PageUp
bind -n C-PageUp copy-mode
# Scrollen mit Shift+PageUp / Shift+PageDown
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# Clipboard und Maus
set -g mouse off
set -g set-clipboard off
# Vim Modus
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
unbind -T copy-mode-vi MouseDragEnd1Pane
# Nicht automatisch umbenennen
set-option -g allow-rename off
# End/Pos1 Taste nach xterm Standard
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
# Liste Plugins
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-sessionist'
# Theme
set -g @plugin 'jimeh/tmux-themepack'
set -g @themepack 'powerline/double/cyan'
# Session Restorer
#set -g @plugin 'tmux-plugins/tmux-resurrect'
#set -g @plugin 'tmux-plugins/tmux-continuum'
#set -g @resurrect-capture-pane-contents 'on'
#set -g @continuum-restore 'on'
# TPM Plugin Manager
set -g @plugin 'tmux-plugins/tpm'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'