dotfiles

Cross platform dotfiles for linux, mac and windows

commit ddb607406746fd84eac2c34dfe58bcf45d76412d
parent 4e5133dd90e710d795bf1c40a38cfb4250c343ed
Author: Bharatvaj <bharatvaj@yahoo.com>
Date: Mon, 15 Nov 2021 19:53:44 +0530

Unlock advanced workflow with tmux

Add more ls traps

Handle config paths more efficiently
2 files changed, 44 insertions(+), 0 deletions(-)
M
.config/.gitignore
|
2
++
A
.config/tmux/tmux.conf
|
42
++++++++++++++++++++++++++++++++++++++++++
diff --git a/.config/.gitignore b/.config/.gitignore
@@ -17,4 +17,6 @@
 !lynx/
 !lynx/lynx.cfg
 !lynx/lynx.lss
+!tmux/
+!tmux/*
 !user-dirs.dirs
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
@@ -0,0 +1,42 @@
+# Miscellaneous
+set -g base-index 1
+set escape-time 0
+set -g set-titles on
+
+# Status bar
+set -g status-position top
+set -g status-right ""
+
+bind v split-window -h
+bind s split-window -v
+
+# Navigation
+set-window-option -g mode-keys vi
+
+bind -n C-h select-pane -L
+bind -n C-j select-pane -D
+bind -n C-k select-pane -U
+bind -n C-l select-pane -R
+
+bind J resize-pane -D 5
+bind K resize-pane -U 5
+bind H resize-pane -L 5
+bind L resize-pane -R 5
+
+# Clipboard
+unbind -T copy-mode-vi Space
+unbind -T copy-mode-vi Enter
+
+bind -T copy-mode-vi v send-keys -X begin-selection
+bind -T copy-mode-vi y send-keys -X end-selection
+
+set-option -g mouse on
+setw -g mode-keys vi
+set-option -s set-clipboard off
+bind P paste-buffer
+
+# Themes
+set -g status-bg black
+set -g status-fg white
+set -g window-status-current-style "bg=white,fg=black"
+