tmux.conf aufgeräumt
This commit is contained in:
parent
fee7c767bc
commit
c0e6b5ebe3
1 changed files with 31 additions and 79 deletions
110
.tmux.conf
110
.tmux.conf
|
@ -1,82 +1,34 @@
|
|||
# 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 %
|
||||
# reload config with prefix + r
|
||||
bind-key r source-file ~/.tmux.conf
|
||||
#------------ System ------------#
|
||||
set -g default-command "${SHELL}" # tmux als non-login shell; https://wiki.archlinux.org/index.php/tmux#Start_a_non-login_shell
|
||||
set-option -g repeat-time 0 # Pfeiltasten sofort nach Fenster-Wechsel freigeben
|
||||
set-window-option -g mouse # Maus-Unterstützung aktivieren
|
||||
set-option -g default-terminal screen-256color # Farb-Optionen für Shell-Fenster
|
||||
set-option -g history-limit 10000 # Anzahl an History-Einträgen auf 10000 erhöhen
|
||||
|
||||
# tmux as non-login shell
|
||||
# https://wiki.archlinux.org/index.php/tmux#Start_a_non-login_shell
|
||||
set -g default-command "${SHELL}"
|
||||
#------------ Buttons ------------#
|
||||
bind | split-window -h # Vertikal splitten
|
||||
bind - split-window -v # Horizontal splitten
|
||||
unbind '"' # alte Tastenkombination deaktivieren
|
||||
unbind % # alte Tastenkombination deaktivieren
|
||||
bind-key r source-file ~/.tmux.conf # .tmux.conf neu laden mit Präfix + r
|
||||
|
||||
set-window-option -g aggressive-resize on #https://superuser.com/questions/880497/how-do-i-resize-the-usable-area-of-a-tmux-session
|
||||
#------------ Infoleiste ------------#
|
||||
set-window-option -g clock-mode-style 24 # Uhrzeit auf 24h Format
|
||||
set-option -g status-right "%H:%M %d-%b-%y | #H" # Uhrzeit + Datum rechts
|
||||
set-option -g status-left '#S' # session name, active program, pane title
|
||||
set-option -g status-justify centre # center window list for clarity
|
||||
set-option -g status-position top # position the status bar at top of screen
|
||||
set-window-option -g window-status-current-format '#I:#W*' # Fensterauflistungsanzeige #i= index of windows; #w = name of window; * zeigt das aktive fenster
|
||||
set-window-option -g window-status-format '#I:#W' # Fensterauflistungsanzeige
|
||||
set-option -g status-style fg=yellow,bg=black # default statusbar colors, yellow and base02
|
||||
|
||||
# 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'
|
||||
|
||||
|
||||
|
||||
# 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
|
||||
#------------ panes/windows ------------#
|
||||
set-option -g set-titles on # automatically set window titles so you know what's going on
|
||||
set-option -g renumber-windows on # Automatische Neu-Nummerierung der Fenster aktivieren; Beispielsweise nach dem Schließen eines Fensters
|
||||
set-option -g base-index 1 # Nummerierung der Fenster und Teilfenster jeweils mit 1 beginnen:
|
||||
bind k select-pane -U # Fenster bewegen mit vim keybindings
|
||||
bind j select-pane -D # Fenster bewegen mit vim keybindings
|
||||
bind h select-pane -L # Fenster bewegen mit vim keybindings
|
||||
bind l select-pane -R # Fenster bewegen mit vim keybindings
|
||||
set-window-option -g automatic-rename on # automatically set window titles so you know what's going on
|
||||
set-window-option -g pane-base-index 1 # Nummerierung der Fenster und Teilfenster jeweils mit 1 beginnen:
|
||||
|
|
Loading…
Reference in a new issue