From e92e82df51537e958a7d642bcd7898b1b5009327 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Wed, 26 Oct 2022 15:14:32 -0400 Subject: Integrated ThePrimeagen's Tmux Environment --- .config/shells/zsh/.zshrc | 1 + .config/tmux/tmux.conf | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .config/tmux/tmux.conf (limited to '.config') diff --git a/.config/shells/zsh/.zshrc b/.config/shells/zsh/.zshrc index 9f934a9..75f7f16 100644 --- a/.config/shells/zsh/.zshrc +++ b/.config/shells/zsh/.zshrc @@ -9,6 +9,7 @@ source $SHELLDIR/dirrc source $SHELLDIR/colorsrc # contians color substituions source $SHELLDIR/cpwdrc # contains _collapsed_pwd bindkey -v +bindkey -s ^f "tmux-sessionizer\n" HISTFILE="$XDG_CACHE_HOME/zshHIST" SAVEHIST=100 HISTSIZE=5000 diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf new file mode 100644 index 0000000..139c895 --- /dev/null +++ b/.config/tmux/tmux.conf @@ -0,0 +1,25 @@ +set -ga terminal-overrides ",xterm-256color*:Tc" +set -s escape-time 0 + +bind-key C-b 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' + +# 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 -r f run-shell "tmux neww ~/.local/bin/tmux-sessionizer" + +bind-key -r T run-shell "~/.local/bin/tmux-sessionizer ~/Documents/Projects/git/The-Morning-Paper" + -- cgit v1.2.3