fix(script): tmuxsess session name handling
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
580c971486
commit
57a5042860
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue