Created
August 18, 2021 11:58
-
-
Save matthiassturm/a756b5fb8113f11723c2254130cc7f02 to your computer and use it in GitHub Desktop.
My tmux config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# what this config does: | |
# 1. beautify the status bar | |
# 2. rebind prefix to C-a (prevent breaking your fingers) | |
# 3. rebind window swapping to cursor keys | |
# 4. bind C-r to reload config | |
# 5. disable mouse scroll, but bind C-m/C-M to control it | |
#set -g utf8 on | |
#set -g default-terminal "screen-256color" | |
set -g default-terminal "xterm-256color" | |
set -g history-limit 30000 | |
# bind C-a to default prefix key combination, unbind C-b | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
# rebind window swapping | |
bind -n S-left prev | |
bind -n S-right next | |
bind -n S-C-left swap-window -t -1 | |
bind -n S-C-right swap-window -t +1 | |
# disable mouse scroll | |
setw -g mouse off | |
# bind C-m/C-M to control mouse scroll if needed | |
bind m setw -g mouse on | |
bind M setw -g mouse off | |
# shorten command delay | |
set -sg escape-time 1 | |
# set window and pane index to 1 (0 by default, 0 is too far from 1) | |
set-option -g base-index 1 | |
setw -g pane-base-index 1 | |
# bind C-r to reload ~/.tmux.conf | |
bind r source-file ~/.tmux.conf | |
# status bar | |
set-option -g status on | |
set -g status-interval 60 | |
# visual notification of activity in other windows | |
setw -g monitor-activity on | |
set -g visual-activity off | |
# style status bar | |
set -g status-style bg=colour235,fg=white | |
set -g status-left " #(whoami)@#H " | |
set -g status-left-length 20 | |
set -g status-right " %d.%m.%y %H:%M " | |
set -g status-right-length 16 | |
set -g window-status-format " #I " | |
set -g window-status-style bg=colour235,fg=colour240 | |
set -g window-status-activity-style bg=colour238,fg=white | |
set -g window-status-current-format " #W " | |
set -g window-status-current-style bg=white,fg=black | |
set -g message-style bg=black,fg=white | |
set-window-option -g aggressive-resize on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment