From 59a785e61b780716e8500394ecdebd669f866776 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 15 Dec 2021 16:56:13 +0100 Subject: Update tmux configurations --- .tmux.conf | 54 ++++++++++++++++++++---------------------------------- 1 file changed, 20 insertions(+), 34 deletions(-) (limited to '.tmux.conf') diff --git a/.tmux.conf b/.tmux.conf index bb0ca49..02b28e8 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,34 +1,20 @@ -# set -g default-terminal "xterm-256color" - -# vi is good -setw -g mode-keys vi - -# mouse behavior -set-option -g mouse on - -# start indexing from 1 not 0 -set -g base-index 1 -set -g pane-base-index 1 - -# Scroll History -set -g history-limit 10000 - -# Don't allow pane automatic renaming -set-option -g allow-rename off - -# Set ability to capture on start and restore on exit window data when running an application -setw -g alternate-screen on - -# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access. -set -s escape-time 50 - -# Allow the arrow key to be used immediately after changing windows -set-option -g repeat-time 0 - - -# Tmux plugins -set -g @plugin 'tmux-plugins/tpm' -set -g @plugin 'tmux-plugins/tmux-logging' - -# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) -run '~/.tmux/plugins/tpm/tpm' +set -g default-terminal "xterm-256color" + +set -g allow-rename off # Don't allow pane automatic renaming +set -g mouse on # mouse behavior +set -g base-index 1 # start indexing from 1 not 0 +set -g pane-base-index 1 # start indexing from 1 not 0 +set -g history-limit 10000 # Scroll History limit +set -g display-time 4000 # messages are displayed for 4 seconds +set -g focus-events on # focus events enabled for terminals that support them +set -g status-keys emacs # emacs binding status commands: https://unix.stackexchange.com/questions/383420/ + +set -s escape-time 50 # lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access. + +setw -g alternate-screen on # allow running alternate screen (term feature) on tmux +setw -g mode-keys vi # Vi mode and copy paste +bind-key -T copy-mode-vi 'v' send-keys -X begin-selection +bind-key -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel + +# Load OSX specific configurations to add (fix copy) +if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-osx.conf' -- cgit v1.2.3