Skip to content

Commit

Permalink
feat: add org name when pane is duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Nov 4, 2024
1 parent 45a9ed5 commit 7da0908
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tmux/tmuxs/new.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ fi
cd -

prefix=0
if tmux has-session -t "$current_session:=$name 📁" &>/dev/null; then
name="${org_name}/${name}"
fi
while tmux has-session -t "$current_session:=$name 📁" &>/dev/null; do
name="${name}_${prefix}"
prefix=$((prefix + 1))
Expand Down

0 comments on commit 7da0908

Please sign in to comment.