fix(tmuxinator): make grep case insensitive

This commit is contained in:
2025-10-04 15:51:12 +02:00
parent 499b0f4329
commit 357bdad01b

View File

@@ -2,7 +2,7 @@ function mx() {
PROJECT_DIR=${1:-.}
SAFE_INPUT=$(printf '%s\n' "$PROJECT_DIR" | sed 's/[][\.^$*+?{}|()]/\\&/g')
ALL_PROJECTS=$(get_mux_sessions)
IS_VALID_PROJECT=$(echo $ALL_PROJECTS | grep -o "[[:<:]]$SAFE_INPUT\w*" | head -1)
IS_VALID_PROJECT=$(echo $ALL_PROJECTS | grep -io "[[:<:]]$SAFE_INPUT\w*" | head -1)
if [[ $IS_VALID_PROJECT != "" ]]; then
tmuxinator start "$IS_VALID_PROJECT"
return 1