aboutsummaryrefslogtreecommitdiff
path: root/tmux/tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tmux/tmux.conf')
-rw-r--r--tmux/tmux.conf47
1 files changed, 47 insertions, 0 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
new file mode 100644
index 0000000..a7991d1
--- /dev/null
+++ b/tmux/tmux.conf
@@ -0,0 +1,47 @@
+# Escape time
+set -sg escape-time 300
+set-option -g focus-events on
+
+# Bind leader to [Control-Space]
+unbind C-b
+set -g prefix C-Space
+
+# Bind [r] to source tmux.conf
+unbind r
+bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
+
+# Activate mouse
+set -g mouse on
+
+# Bind h and v to horizontal and vertical split
+unbind v # not bound by default, but may be in a future update
+unbind h # not bound by default, but may be in a future update
+unbind % # Split vertically
+unbind '"' # Split horizontally
+bind h split-window -h -c "#{pane_current_path}"
+bind v split-window -v -c "#{pane_current_path}"
+
+# Bind x to kill pane without confirmation
+unbind x
+bind-key x kill-pane # rebind to 'kill pane' to remove confirmation prompt
+
+# bind t to toggle status bar
+unbind t
+bind t set-option status
+
+# Set Command History to 100000
+set -g history-limit 100000
+
+# Terminal name
+set -g default-terminal "screen-256color"
+
+# Status Bar config
+set-option -g status-interval 1
+set-option -g status-style fg=yellow,bright,bg=default
+set-option -g status-left-length 20
+set-option -g status-left ""
+set-option -g status-right ""
+
+# Copy into system clipboard
+set -s copy-command 'xclip -in -selection clipboard'
+set -s set-clipboard off