summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Segundo2023-10-12 14:22:16 +0200
committerChristian Segundo2023-10-12 14:22:16 +0200
commit3a974be2bf6ecace920add9b80f0c63b3e235dc6 (patch)
tree483cf397f4a7af502257af0b5e9aa38229db5641
parentfe2bd279569cd20ba6f7e7e08a4eb948479140d1 (diff)
downloaddotfiles-3a974be2bf6ecace920add9b80f0c63b3e235dc6.tar.gz
Add tmux
-rw-r--r--public/tmux/.tmux.conf46
1 files changed, 46 insertions, 0 deletions
diff --git a/public/tmux/.tmux.conf b/public/tmux/.tmux.conf
new file mode 100644
index 0000000..1ace947
--- /dev/null
+++ b/public/tmux/.tmux.conf
@@ -0,0 +1,46 @@
+# Enable mouse mode
+set -g mouse on
+set -g focus-events on
+
+# scrollback buffer
+set-option -g history-limit 3000000
+
+# 10ms escape time
+set-option -sg escape-time 10
+
+# Don't rename windows automatically
+set-option -g allow-rename off
+
+# Remove the right status bar
+set-option -g status-right ""
+
+set-option -g status-style fg=white,bg=black
+
+# Split panes using | and -
+bind | split-window -h
+bind - split-window -v
+unbind '"'
+unbind %
+
+# Synchronize panes using C-x
+bind -n C-x setw synchronize-panes
+
+# Reload config file using r
+bind r source-file ~/.tmux.conf
+
+# List of plugins
+#set -g @plugin 'tmux-plugins/tpm'
+#set -g @plugin 'tmux-plugins/tmux-sensible'
+
+set -g @scroll-down-exit-copy-mode "off"
+set -g @scroll-in-moused-over-pane "off"
+set -g @scroll-speed-num-lines-per-scroll "1"
+set -g @emulate-scroll-for-no-mouse-alternate-buffer "on"
+
+
+# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
+#run -b '~/.tmux/plugins/tpm/tpm'
+
+# Fixes colors
+set -g default-terminal "xterm-256color"
+set -ga terminal-overrides ",*256col*:Tc"