Skip to content

Commit b24a064

Browse files
committed
[tmux] M-o goes to previsous session if no last session
Since we only use two sessions most of the time, and I had to manully navigate the first time opening tmux for it to register a "last session" this makes a lot more sense.
1 parent 6db7d08 commit b24a064

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tmux/.tmux.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ bind-key -n M-w kill-pane
9191
bind-key -n M-u last-window
9292
9393
# Easier session switching
94-
bind-key -n M-o switch-client -l
94+
bind-key -n M-o run-shell "tmux switch-client -l || tmux switch-client -p"
9595
9696
# Kill tmux session
9797
bind 0 kill-session

0 commit comments

Comments
 (0)