Skip to content

Commit

Permalink
fix: removed previous check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroSuero committed Apr 4, 2024
1 parent 08437c0 commit 13743ea
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions roles/zsh/files/zsh/bin/tmux-sessionizer
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ fi
selected_name=$(basename "$selected" | tr . _)
tmux_running=$(pgrep tmux)

if ! tmux a 2> /dev/null; then
tmux a -t "$selected_name"
exit
fi

if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then
tmux new-session -s "$selected_name" -c "$selected"
exit 0
Expand Down

0 comments on commit 13743ea

Please sign in to comment.