aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tmux/.config
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-10-29 13:05:24 -0500
committerToby Vincent <tobyv13@gmail.com>2022-10-29 13:05:24 -0500
commit8ad89dbc508a10232a84e649e92f2d23e01230f3 (patch)
treea70129bc734f8792b7905e1d3703fd6f8efb0a6e /tmux/.config
parent9b753155c6f72f399d77f482144ff07b146c1bbe (diff)
feat(tmux): add keybind to switch to last session
Diffstat (limited to 'tmux/.config')
-rw-r--r--tmux/.config/tmux/tmux.conf19
1 files changed, 10 insertions, 9 deletions
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'