From 7c5a4742466c2d3e7358a93224b2bd918b14eae8 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Fri, 16 Sep 2022 12:19:12 -0500 Subject: feat(tmux): start work on ssh-based sessionizer --- tmux/.config/tmux/tmux.conf | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'tmux/.config') diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index b244289..3d30a5e 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -17,16 +17,13 @@ set -g detach-on-destroy off bind-key -N "Open new window" t new-window bind-key -N "Show a clock" T clock-mode -bind-key -N "Open project in new session" f run-shell ~/.local/bin/tmux-sessionizer -bind-key -N "Switch between sessions" F run-shell ~/.local/bin/tmux-sessions +bind-key -N "New ssh host" s run-shell ~/.local/bin/tmux-ssh +# bind-key -N "Switch ssh host" S run-shell ~/.local/bin/tmux-ssh +bind-key -N "New session" f run-shell ~/.local/bin/tmux-sessionizer +bind-key -N "Switch session" F run-shell ~/.local/bin/tmux-sessions bind-key -N "Open neovim" e new-window -Sn nvim nvim -bind-key -N "Open spotify in popup" s display-popup -w 90% -h 90% -E spt -bind-key -N "Open spotify in new window" S new-window -S spt -# TODO: fix issue with tmux popups using the tmux-server's parent env (in this case, wsl spawn env?) -# https://www.reddit.com/r/tmux/comments/r3hfy0/tmux_popup_does_not_load_zshrc/ -# bind-key -N "Open lazygit in popup" g display-popup -w 90% -h 90% -E lazygit -bind-key -N "Open lazygit" g send-keys "lazygit" Enter -bind-key -N "Open lazygit in new window" G new-window -S lazygit +bind-key -N "Open spotify" m display-popup -w 90% -h 90% -E spt +bind-key -N "Open lazygit" g display-popup -w 90% -h 90% -E lazygit set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' -- cgit v1.2.3-70-g09d2