2011-10-29 10:03:56 +02:00
|
|
|
# Sets screen shortcuts (Copied from tmux faq)
|
|
|
|
set -g prefix C-a
|
|
|
|
unbind C-b
|
|
|
|
bind C-a send-prefix
|
|
|
|
|
|
|
|
# Sets status bar colours to black on white (copied from http://goo.gl/2V0Lz )
|
2020-07-07 18:32:42 +02:00
|
|
|
set -g status-bg black
|
|
|
|
set -g status-fg white
|
|
|
|
|
|
|
|
# Highlights active window with red background (copied from http://goo.gl/2V0Lz )
|
|
|
|
#set-window-option -g window-status-current-bg red
|
2011-10-29 10:03:56 +02:00
|
|
|
|
|
|
|
# Shows current time on statusbar. ( Made better suitable for me from nyuszika7h's .tmux.conf http://nyuszika7h.dyndns.org/~nyuszika7h/.tmux.conf )
|
2024-06-05 08:51:57 +02:00
|
|
|
set -g status-right '#[fg=yellow,bold]#h ⚧︎ %F %H:%M %Z#[fg=black,bold]#[fg=black,bold]'
|
2011-10-29 10:03:56 +02:00
|
|
|
|
|
|
|
# Sets automatic renaming of windows. (copied from comment by André Laszlo http://goo.gl/2V0Lz )
|
|
|
|
setw -g automatic-rename on
|
|
|
|
|
|
|
|
# Starts window numbering at 1 instead of 0 (in my keyboard, numbers are 1234567890)
|
|
|
|
set -g base-index 1
|
|
|
|
|
|
|
|
# Sets 0 as window 10 (in my keyboard, numbers are 1234567890)
|
|
|
|
bind-key 0 select-window -t :10
|
|
|
|
|
2015-09-07 08:36:08 +02:00
|
|
|
# Terminal supports 256colors
|
2019-07-23 10:24:45 +02:00
|
|
|
# Testing if the world is ready for tmux-256color. `infocmp tmux-256color`
|
|
|
|
# can be used to see if the current system is.
|
|
|
|
set -g default-terminal "tmux-256color"
|
|
|
|
#set -g default-terminal "screen-256color"
|
2015-09-07 08:36:08 +02:00
|
|
|
|
2015-09-10 17:48:36 +02:00
|
|
|
# Terminal emulator window titles
|
|
|
|
set -g set-titles on
|
|
|
|
# Set window title to "current window name — hostname"
|
|
|
|
set -g set-titles-string "#W — #H"
|
|
|
|
|
2015-09-07 08:36:08 +02:00
|
|
|
# Start non-login shell
|
|
|
|
set -g default-command "${SHELL}"
|
|
|
|
|
|
|
|
# Resize window (not session) based on the smallest client viewing it
|
|
|
|
setw -g aggressive-resize on
|
2018-10-11 10:24:46 +02:00
|
|
|
|
|
|
|
# Lower escape-time to make Neovim's :checkhealth happy
|
|
|
|
set -g escape-time 300
|
|
|
|
# Or for tmux >= 2.6
|
|
|
|
set -sg escape-time 300
|
2019-02-17 22:17:41 +01:00
|
|
|
|
2024-04-18 08:29:02 +02:00
|
|
|
# Turn the clock yellow. Red would be better at night, but I am used to
|
|
|
|
# looking at amber in my terminals and thus yellow is less distracting.
|
|
|
|
setw -g clock-mode-colour yellow
|