2020-07-12 20:02:36 +02:00
|
|
|
# split panes using | and -
|
|
|
|
# https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
|
|
|
|
bind | split-window -h
|
|
|
|
bind - split-window -v
|
|
|
|
unbind '"'
|
|
|
|
unbind %
|
2020-07-16 13:03:12 +02:00
|
|
|
# reload config with prefix + r
|
|
|
|
bind-key r source-file ~/.tmux.conf
|
2020-07-12 20:02:36 +02:00
|
|
|
|
2020-07-14 14:05:57 +02:00
|
|
|
# tmux as non-login shell
|
|
|
|
# https://wiki.archlinux.org/index.php/tmux#Start_a_non-login_shell
|
|
|
|
set -g default-command "${SHELL}"
|
|
|
|
|
2020-07-14 14:20:35 +02:00
|
|
|
set-window-option -g aggressive-resize on #https://superuser.com/questions/880497/how-do-i-resize-the-usable-area-of-a-tmux-session
|
2020-07-13 19:43:20 +02:00
|
|
|
|
2020-07-12 20:02:36 +02:00
|
|
|
# setze uhrzeit auf 24h format
|
|
|
|
set-window-option -g clock-mode-style 24
|
|
|
|
|
|
|
|
# https://www.grund-wissen.de/linux/shell/tmux.html
|
|
|
|
|
|
|
|
set-option -g history-limit 10000 # Anzahl an History-Einträgen auf 10000 erhöhen:
|
|
|
|
set-option -g base-index 1 # Nummerierung der Fenster und Teilfenster jeweils mit 1 beginnen:
|
|
|
|
set-window-option -g pane-base-index 1 # Nummerierung der Fenster und Teilfenster jeweils mit 1 beginnen:
|
|
|
|
set-option -g repeat-time 0 # Pfeiltasten sofort nach Fenster-Wechsel freigeben:
|
|
|
|
setw -g mouse # Maus-Unterstützung aktivieren:
|
|
|
|
set-option -g default-terminal screen-256color # Farb-Optionen für Shell-Fenster:
|
|
|
|
|
|
|
|
# Inhalt der Infoleiste ändern:
|
|
|
|
set -g status-interval 2
|
|
|
|
set -g status-left '[#S]'
|
|
|
|
set -g status-right "%H:%M %d-%b-%y"
|
|
|
|
set-option -g status-justify left
|
|
|
|
set-window-option -g window-status-current-format '#I:#W#F'
|
|
|
|
set-window-option -g window-status-format '#I:#W#F'
|
|
|
|
|
|
|
|
# Aktive Shell-Fenster visuell hervorheben:
|
|
|
|
setw -g monitor-activity on
|
|
|
|
set -g visual-activity on
|
|
|
|
|
|
|
|
# Automatische Neu-Nummerierung der Fenster aktivieren:
|
|
|
|
# (Beispielsweise nach dem Schließen eines Fensters)
|
|
|
|
set -g renumber-windows on
|
|
|
|
|
|
|
|
# automatically set window titles so you know what's going on
|
|
|
|
set-window-option -g automatic-rename on
|
|
|
|
set-option -g set-titles on
|
|
|
|
|
|
|
|
# Fenster bewegen mit vim keybindings
|
|
|
|
bind k select-pane -U
|
|
|
|
bind j select-pane -D
|
|
|
|
bind h select-pane -L
|
|
|
|
bind l select-pane -R
|
|
|
|
|
|
|
|
set -g status-justify centre # center window list for clarity
|
|
|
|
set-option -g status-position top # position the status bar at top of screen
|
|
|
|
|
|
|
|
### https://github.com/seebi/tmux-colors-solarized
|
|
|
|
#### COLOUR (Solarized dark)
|
|
|
|
|
|
|
|
# default statusbar colors
|
|
|
|
set-option -g status-style fg=yellow,bg=black #yellow and base02
|
|
|
|
|
|
|
|
# default window title colors
|
|
|
|
set-window-option -g window-status-style fg=brightblue,bg=default #base0 and default
|
|
|
|
|
|
|
|
# active window title colors
|
|
|
|
set-window-option -g window-status-current-style fg=brightred,bg=default #orange and default
|
|
|
|
|
|
|
|
# pane border
|
|
|
|
set-option -g pane-border-style fg=black #base02
|
|
|
|
set-option -g pane-active-border-style fg=brightgreen #base01
|
|
|
|
|
|
|
|
# message text
|
|
|
|
set-option -g message-style fg=brightred,bg=black #orange and base01
|
|
|
|
|
|
|
|
# pane number display
|
|
|
|
set-option -g display-panes-active-colour blue #blue
|
|
|
|
set-option -g display-panes-colour brightred #orange
|
|
|
|
|
|
|
|
# clock
|
|
|
|
set-window-option -g clock-mode-colour green #green
|
|
|
|
|
|
|
|
# bell
|
|
|
|
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red
|