- TMUX: Switched back to ctrl+b as leader

- VIM: Configurations better commented
- NVIM: NVChad, LazyNvim, Old-Config removed
- NVIM: Restarted and reconfigured from kickstart.nvim [WIP]
- Dotfiles on $HOME removed from 160+ to 25. Most of them moved to $XDG_* directories
- Shell: Added back p10k config
- Shell: Autoremove brew left over applications
- Kitty: Added bashrc & profiles for ssh kitten
- Kitty: Custom tab-titles
This commit is contained in:
Pratik Tripathy
2024-01-29 22:35:58 +05:30
parent 0d0620be00
commit 5fa524dd1d
69 changed files with 2984 additions and 1755 deletions

View File

@@ -1,14 +1,14 @@
# Keybinding Summary
#========================================================
# Rename Session -> <alt-a> $
# Rename Tab -> <alt-a> ,
# Next/prev tab -> <alt-a> n/p
# H-split/V-split -> <alt-a> s/v
# Resize Pane -> <alt-a> leave alt -> h,j,k,l (repeat press)
# Rename Session -> <ctrl-a> $
# Rename Tab -> <ctrl-a> ,
# Next/prev tab -> <ctrl-a> n/p
# H-split/V-split -> <ctrl-a> s/v
# Resize Pane -> <ctrl-a> leave alt -> h,j,k,l (repeat press)
# Switch Pane -> <ctrl-h,j,k,l>
# Enter copy mode -> <alt-a>[
# Enter copy mode -> <ctrl-a>[
# Exit copy mode -> <enter>
# Reload tmux.conf -> <alt-a> r
# Reload tmux.conf -> <ctrl-a> r
# More at: https://tmuxcheatsheet.com
@@ -17,10 +17,10 @@
#========================================================
# KEY BINDINGS
#========================================================
# Change Tmux leader key to -> <alt-a>
# Change Tmux leader key to -> <ctrl-a>
unbind C-b
set -g prefix M-a
bind-key M-a send-prefix
set -g prefix C-a
bind-key C-a send-prefix
# Kill current session with q
bind q confirm-before kill-session
@@ -52,11 +52,11 @@ bind C-p previous-window
bind C-n next-window
bind C-a send-prefix
bind a last-window
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Tmux config reloaded."
bind r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf" \; display-message "Tmux config reloaded."
# Change resurrect keys to <alt-s>(Save) & <alt-r>(Resurrect)
set -g @resurrect-save "M-s"
set -g @resurrect-restore "M-r"
# Change resurrect keys to <ctrl-s>(Save) & <ctrl-r>(Resurrect)
set -g @resurrect-save "C-s"
set -g @resurrect-restore "C-r"
#========================================================
# OPTIONS
@@ -77,7 +77,7 @@ setw -g aggressive-resize on # For grouped sessions
# Resurrection Options
set -g @resurrect-capture-pane-contents "on"
set -g @resurrect-strategy-nvim "session"
set -g @resurrect-dir "$HOME/.config/tmux/resurrect"
set -g @resurrect-dir "$XDG_CONFIG_HOME/tmux/resurrect"
# Don't exit tmux when closing a session
set -g detach-on-destroy off
@@ -102,9 +102,7 @@ set -g status-position top
#========================================================
# PLUGINS
#========================================================
run "~/.config/tmux/plugins/tpm/tpm" # Init Tmux Plugin Manager
# TODO: Get into Tmux copy stuff when required
run "$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm" # Init Tmux Plugin Manager
set -g @plugin "christoomey/vim-tmux-navigator" # sync pane nav with Vim window nav
set -g @plugin "tmux-plugins/tmux-resurrect" # Persist sessions