summaryrefslogtreecommitdiffstats
path: root/.tmux.conf
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2021-12-15 16:56:13 +0100
committerAhmed Abdelhalim <[email protected]>2021-12-15 16:56:13 +0100
commit59a785e61b780716e8500394ecdebd669f866776 (patch)
treeba83c40d440b2c86bc58ad20a0ce6692b4e085c9 /.tmux.conf
parent67b6fab8046ba45f6b829f91980ab07606c45667 (diff)
Update tmux configurations
Diffstat (limited to '.tmux.conf')
-rw-r--r--.tmux.conf54
1 files changed, 20 insertions, 34 deletions
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'