diff options
| author | Jacob McDonnell <jacob@simplelittledream.com> | 2022-10-26 15:14:32 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@simplelittledream.com> | 2022-10-26 15:14:32 -0400 |
| commit | e92e82df51537e958a7d642bcd7898b1b5009327 (patch) | |
| tree | 4fa9532f2e8fda1b49798d7a3d5bfe8219f0dca4 /.config | |
| parent | 6b6e91707ecf621a0bedad154351db8f1ccc2123 (diff) | |
Integrated ThePrimeagen's Tmux Environment
Diffstat (limited to '.config')
| -rw-r--r-- | .config/shells/zsh/.zshrc | 1 | ||||
| -rw-r--r-- | .config/tmux/tmux.conf | 25 |
2 files changed, 26 insertions, 0 deletions
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" + |
