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