From 8ad89dbc508a10232a84e649e92f2d23e01230f3 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Sat, 29 Oct 2022 13:05:24 -0500 Subject: feat(tmux): add keybind to switch to last session --- tmux/.config/tmux/tmux.conf | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'tmux/.config') diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index b9b010d..0d0517e 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -15,15 +15,16 @@ set -g base-index 1 set -g pane-base-index 1 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 "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" m display-popup -w 90% -h 90% -E spt -bind-key -N "Open lazygit" g display-popup -w 90% -h 90% -E lazygit +bind-key -N "Switch last session" C-a switch-client -l +bind-key -N "Clock" T clock-mode +bind-key -N "Host: new" s run-shell ~/.local/bin/tmux-ssh +# bind-key -N "Host: switch" S run-shell ~/.local/bin/tmux-ssh +bind-key -N "Session: new" f run-shell ~/.local/bin/tmux-sessionizer +bind-key -N "Session: switch" F run-shell ~/.local/bin/tmux-sessions +bind-key -N "Window: new" t new-window +bind-key -N "Window: neovim" e new-window -S nvim +bind-key -N "Popup: spotify" m display-popup -w 90% -h 90% -E spt +bind-key -N "Popup: 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