From 57a5042860011b8ca7938c8356dd53f5d6f23eaa Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Sun, 22 Oct 2023 08:10:38 +0200 Subject: [PATCH] fix(script): tmuxsess session name handling --- script/tmuxsess | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"