From 0bd7c6db6c39267c0511d12de4be325eb99f5dff Mon Sep 17 00:00:00 2001 From: Jasper Bok Date: Wed, 8 Jun 2022 07:29:45 +0200 Subject: [PATCH] Add tmux configuration --- dot_tmux.conf.tmpl | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 dot_tmux.conf.tmpl diff --git a/dot_tmux.conf.tmpl b/dot_tmux.conf.tmpl new file mode 100644 index 0000000..f3c71a2 --- /dev/null +++ b/dot_tmux.conf.tmpl @@ -0,0 +1,40 @@ +# set-option can set four types of options: +# server (-s), session (default), window (-w) and pane (-p) +# With -g, a global session or window option is set. + +# Remove timeout after pressing escape. +set-option -s escape-time 0 + +set-option -sg default-terminal "screen-256color" + +# Session options +# =============== + +# Change the default shell to Fish. +set-option -g default-shell {{ .homebrew.prefix }}/bin/fish + +# Enable mouse mode. +set-option -g mouse on + +# Window options +# ============== + +# Raise the default window history limit to 10.000 lines. +set-option -g history-limit 10000 + +# Use vi-style key bindings in copy mode. +set-option -g mode-keys vi + +# Key bindings +# ============ + +unbind -T copy-mode-vi Space +unbind -T copy-mode-vi Enter +bind -T copy-mode-vi v send-keys -X begin-selection +bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy" + +unbind r +bind r source-file ~/.tmux.conf \; display "Reloaded config" + +unbind s +bind s set-window-option synchronize-panes