69 lines
1.9 KiB
Bash
69 lines
1.9 KiB
Bash
# Automatically set window title
|
|
set-window-option -g automatic-rename on
|
|
set-option -g set-titles on
|
|
|
|
# position the status bar at top of screen
|
|
set-option -g status-position top
|
|
|
|
# Deaktiviere "Markierung" aktiver Fenster
|
|
set-option -g monitor-activity off
|
|
|
|
# Automatische Neu-Nummerierung der Fenster aktivieren; Beispielsweise nach dem Schließen eines Fensters
|
|
set-option -g renumber-windows on
|
|
|
|
# Nummerierung der Fenster und Teilfenster jeweils mit 1 beginnen
|
|
set-window-option -g pane-base-index 1
|
|
set-option -g base-index 1
|
|
set -g pane-base-index 1
|
|
|
|
# Statuszeile
|
|
set-option -g status-right "#(hostname -f)"
|
|
set -g status-right-length 100
|
|
|
|
# resize
|
|
set-option -gw aggressive-resize on
|
|
|
|
# Farb-Optionen für Shell-Fenster
|
|
set -g default-terminal screen-256color
|
|
|
|
# increase scrollback buffer size
|
|
set -g history-limit 50000
|
|
|
|
# Maus-Unterstützung aktivieren
|
|
set -g mouse on
|
|
|
|
# Wechsle Fenster mit vim keybindings
|
|
bind k select-pane -U
|
|
bind j select-pane -D
|
|
bind h select-pane -L
|
|
bind l select-pane -R
|
|
|
|
# display more of the session name
|
|
set -g status-left-length 20
|
|
|
|
# Splits
|
|
unbind '"'
|
|
unbind %
|
|
# setze Bind auf logische Zeichen & öffne in Pane in aktuellen Dir
|
|
# https://github.com/jbranchaud/til/blob/master/tmux/open-new-splits-to-the-current-directory.md
|
|
bind - split-window -v -c "#{pane_current_path}"
|
|
bind | split-window -h -c "#{pane_current_path}"
|
|
|
|
# Address vim mode switching delay (http://superuser.com/a/252717/65504)
|
|
set -s escape-time 0
|
|
|
|
# tmux messages are displayed for 4 seconds
|
|
set -g display-time 4000
|
|
|
|
# gehe in copy mode und starte suche
|
|
# prefix + f
|
|
set-window-option -g mode-keys vi
|
|
bind f copy-mode\; send-keys ?
|
|
|
|
# Focus events enabled for terminals that support them
|
|
set -g focus-events on
|
|
|
|
# Move Panes interactively
|
|
# https://www.reddit.com/r/commandline/comments/8wv0w6/interactively_moving_panes_to_other_windows/
|
|
unbind m
|
|
bind-key m choose-tree -Z "join-pane -t '%%'"
|