summaryrefslogtreecommitdiff
path: root/dot_tmux.conf
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-12-11 20:46:32 +0100
committerSanto Cariotti <santo@dcariotti.me>2024-12-11 20:47:59 +0100
commitf22f1723c01b56da14ae1de3491a78af1bc4c464 (patch)
tree030411c811d3474c4b322eca29d1bf8e96b7511f /dot_tmux.conf
parentd8713792f93473fe14e01d151529fb6ef139448f (diff)
Dot files with `chezmoi`
Diffstat (limited to 'dot_tmux.conf')
-rw-r--r--dot_tmux.conf50
1 files changed, 50 insertions, 0 deletions
diff --git a/dot_tmux.conf b/dot_tmux.conf
new file mode 100644
index 0000000..12655bc
--- /dev/null
+++ b/dot_tmux.conf
@@ -0,0 +1,50 @@
+#set-option -ga terminal-overrides ",xterm-256color-italic:Tc"
+set-option -g default-terminal "screen-256color"
+
+bind c new-window -c "#{pane_current_path}"
+bind '"' split-window -c "#{pane_current_path}"
+bind % split-window -h -c "#{pane_current_path}"
+
+set -g history-limit 5000
+
+setw -g mode-keys vi
+set -g mouse on
+set-option -s set-clipboard off
+bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy -se c -i"
+
+
+bind -n M-Left select-pane -L
+bind -n M-Right select-pane -R
+bind -n M-Up select-pane -U
+bind -n M-Down select-pane -D
+
+
+set -g status-left ''
+# set -g status-right "%a %d/%m/%Y %H:%M"
+set -g status-right ''
+
+set -g status-bg colour82
+set -g status-fg colour16
+
+set -g renumber-windows on
+set -g history-file ~/.tmux_history
+bind r source-file ~/.tmux.conf \; display "Config Reloaded!"
+
+# select pane
+bind h select-pane -L
+bind j select-pane -D
+bind k select-pane -U
+bind l select-pane -R
+
+# select window
+bind -r C-h select-window -t :-
+bind -r C-l select-window -t :+
+
+# resize pane
+bind -r H resize-pane -L 10
+bind -r J resize-pane -D 10
+bind -r K resize-pane -U 10
+bind -r L resize-pane -R 10
+
+# Source the vim tmuxline
+#if-shell "test -f ~/.tmuxline" "source ~/.tmuxline"