37 lines
966 B
Plaintext
37 lines
966 B
Plaintext
# screen behaviour
|
|
unbind C-b
|
|
set -g prefix C-a
|
|
unbind C-a
|
|
bind C-a send-prefix
|
|
|
|
# config reload
|
|
unbind r
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
# more ergonomic splitting
|
|
unbind |
|
|
bind | split-window -h
|
|
|
|
unbind -
|
|
bind - split-window -v
|
|
|
|
# more ergnomic window numbers
|
|
set -g base-index 1
|
|
setw -g pane-base-index 1
|
|
|
|
# only set window size when client is attached to the specific window
|
|
setw -g aggressive-resize on
|
|
|
|
# HOWTO copy: PREFIX+[, space, select text, enter, PREFIX+]
|
|
|
|
# disable mouse (prevents simple copying)
|
|
set -g mouse off
|
|
|
|
# powerline
|
|
run-shell "powerline-daemon -q || true"
|
|
# 3.7 for buster, 3.8 for bullseye
|
|
source -q /usr/local/lib/python3.7/dist-packages/powerline/bindings/tmux/powerline.conf
|
|
source -q /usr/local/lib/python3.8/dist-packages/powerline/bindings/tmux/powerline.conf
|
|
source -q ~/.local/lib/python3.7/site-packages/powerline/bindings/tmux/powerline.conf
|
|
source -q ~/.local/lib/python3.8/site-packages/powerline/bindings/tmux/powerline.conf
|