Browse Source

feat: attach to tmux session from outside using tmux-sessionizer

master
Tovi Jaeschke-Rogers 8 months ago
parent
commit
e1901118af
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      .local/bin/tmux-sessionizer

+ 5
- 0
.local/bin/tmux-sessionizer View File

@ -18,6 +18,11 @@ if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then
exit 0
fi
if [[ -z $TMUX ]]; then
tmux attach-session -t $selected_name
exit 0
fi
if ! tmux has-session -t=$selected_name 2> /dev/null; then
tmux new-session -ds $selected_name -c $selected
fi


Loading…
Cancel
Save