fix(script): tmuxsess session name handling
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Rob Watson 2023-10-22 08:10:38 +02:00
parent 580c971486
commit 57a5042860
1 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,7 @@ set -e
if [ -z "$1" ]; then
cwd=$(pwd)
sessionname=$(basename "$cwd")
sessionname=$(basename "$cwd" | tr .: _)
else
sessionname="$1"
fi
@ -28,7 +28,6 @@ if [ $exitcode -ne 0 ]; then
exit $exitcode
fi
# TODO: fix sessionname containing full stop which are renamed by tmux
tmux rename-window -t "$sessionname:1" cli
tmux new-window -t "$sessionname" -n vim zsh -ic nvim
tmux select-window -t "$sessionname:1"