From 0c492a5c3b12ffe2a0c5f0d9597f621819e73145 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Wed, 31 May 2023 15:39:32 -0500 Subject: fix(tmux): fix bug when no project is selected --- tmux/.local/bin/tmux-sessionizer | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tmux/.local/bin/tmux-sessionizer b/tmux/.local/bin/tmux-sessionizer index cf027a8..9966157 100755 --- a/tmux/.local/bin/tmux-sessionizer +++ b/tmux/.local/bin/tmux-sessionizer @@ -12,6 +12,8 @@ if [ "$#" -eq 0 ]; then --bind 'focus:transform-header(echo {})' \ --preview-window='right,75%,<80(up,75%,border-bottom)' --preview="$PREVIEW_CMD" ) + + test -n "$1" || exit 0 fi if [ -z "$2" ]; then -- cgit v1.2.3-70-g09d2