added tmux

This commit is contained in:
Daniel Fichtinger 2024-11-02 00:37:24 -04:00
parent 0ed02e8f21
commit 77d39002ee

View file

@ -1,47 +1,13 @@
set-option -sa terminal-overrides ",xterm*:Tc"
unbind r
bind r source-file ~/.config/tmux/tmux.conf
unbind C-b
unbind C-t
set -g prefix C-t
set -g mouse on
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# Shift Alt vim keys to switch windows
bind -n M-H previous-window
bind -n M-L next-window
# Start windows and panes at 1
set -g base-index 1
setw -g pane-base-index 1
# set-window-option -g pane-base-index 1
set-option -g renumber-windows on
set -g @cursor-style 'bar'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'dracula/tmux'
set -g @plugin 'tmux-plugins/tmux-yank'
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'
# Theme configuration
set -g @dracula-plugins "git"
set -g @dracula-show-powerline true
set -g @dracula-show-flags true
set -g @dracula-show-left-icon smiley
set -g @dracula-show-empty-plugins false
# set vi-mode
set-window-option -g mode-keys vi
# keybindings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind-key g setw synchronize-panes \; display-message 'Pane synchronization #{?pane_synchronized,on,off}'
# Open panes in current directory
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
run '~/.tmux/plguins/tpm/tpm'
run '/usr/share/tmux-plugin-manager/tpm'