diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-03-17 13:04:57 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-03-17 13:04:57 -0500 |
commit | a3d6669ce88b8690e53429773d7e30056d86e135 (patch) | |
tree | daae0689663156b71eb2b220ea528b109d20871c /tmux.conf | |
parent | c54272dc4591d2099e198a7f95421f7b223bc142 (diff) |
feat: improved wsl terminal experience
Diffstat (limited to 'tmux.conf')
-rw-r--r-- | tmux.conf | 39 |
1 files changed, 11 insertions, 28 deletions
@@ -1,44 +1,27 @@ set -g mouse on - +set -g base-index 1 set -g default-terminal "tmux-256color" set -ga terminal-overrides ",alacritty:Tc" -set-option -sg escape-time 10 -set-option -g focus-events on unbind C-b set-option -g prefix C-a bind-key C-a send-prefix -set -g status-style 'bg=#333333 fg=#5eacd3' - -bind r source-file ~/.tmux.conf -set -g base-index 1 set-window-option -g mode-keys vi -bind -T copy-mode-vi v send-keys -X begin-selection -bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' -bind | split-window -h -bind \ split-window -v unbind '"' unbind % -# vim-like pane switching -bind -r ^ last-window -bind -r k select-pane -U -bind -r j select-pane -D -bind -r h select-pane -L -bind -r l select-pane -R +# forget the find window. That is for chumps +bind-key f run-shell "tmux neww ~/.local/bin/tmux-sessionizer" -bind -r D neww -c "#{pane_current_path}" "[[ -e TODO.md ]] && nvim TODO.md || nvim ~/.todo.md" +# Plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'tmux-plugins/tmux-yank' +set -g @plugin 'tmux-plugins/tmux-pain-control' -# forget the find window. That is for chumps -bind-key -r f run-shell "tmux neww ~/.local/bin/tmux-sessionizer" +if "test ! -d ~/.tmux/plugins/tpm" \ + "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" -bind-key -r i run-shell "tmux neww tmux-cht.sh" -# bind-key -r G run-shell "~/.local/bin/tmux-sessionizer ~/work/nrdp" -# bind-key -r C run-shell "~/.local/bin/tmux-sessionizer ~/work/tvui" -# bind-key -r R run-shell "~/.local/bin/tmux-sessionizer ~/work/milo" -# bind-key -r H run-shell "~/.local/bin/tmux-sessionizer ~/personal/vim-with-me" -# bind-key -r T run-shell "~/.local/bin/tmux-sessionizer ~/personal/refactoring.nvim" -# bind-key -r N run-shell "~/.local/bin/tmux-sessionizer ~/personal/harpoon" -# bind-key -r S run-shell "~/.local/bin/tmux-sessionizer ~/personal/developer-productivity" +run '~/.tmux/plugins/tpm/tpm' |