commit 496b4ba3c10ba57e8fe4e71b1d15a2f3850b23e1 Author: Danny Oh Date: Thu Jun 6 01:21:42 2024 -0500 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16873f6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +plugins/ diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..129719c --- /dev/null +++ b/tmux.conf @@ -0,0 +1,39 @@ +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'catppuccin/tmux' +set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @resurrect-strategy-nvim 'session' +set -g @resurrect-capture-pane-contents 'on' + +run '~/.tmux/plugins/tpm/tpm' + +# set terminal colors to 24-bit +set-option -sa terminal-overrides ",xterm*:Tc" +set-option -g default-shell /bin/zsh + +set-window-option -g mode-keys vi + +# copy mode and clipboard +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 v copy-mode +set -g set-clipboard on +set -as terminal-feature ',*:clipboard' +set -s copy-command 'xsel -i -b' + +# vim style pane +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R +bind M-h resize-pane -L 10 +bind M-j resize-pane -D 10 +bind M-k resize-pane -U 10 +bind M-l resize-pane -R 10 + +# open new panes/windows in current path +bind '"' split-window -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" +bind c new-window -c "#{pane_current_path}" +