summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2021-03-27 14:31:44 +0100
committerAhmed Abdelhalim <[email protected]>2021-03-27 14:31:44 +0100
commit2207f63b17dc881f2de7ff4d45bd3a2f532283d9 (patch)
tree1e93d398edf655343747b78e3404acd205cfb0b0
parent2e145388010a04f6b28af2b2b6c3731d1dd37141 (diff)
Add tmux configurations
-rw-r--r--.tmux.conf26
1 files changed, 26 insertions, 0 deletions
diff --git a/.tmux.conf b/.tmux.conf
new file mode 100644
index 0000000..46a744e
--- /dev/null
+++ b/.tmux.conf
@@ -0,0 +1,26 @@
+# 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 30000
+
+# 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
+
+# Allow copy like vim
+bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard'