diff --git a/script/tmuxsess b/script/tmuxsess index 7ddc12c..7ad27e6 100755 --- a/script/tmuxsess +++ b/script/tmuxsess @@ -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"