From 357bdad01bb12e1419ebb182e9a64ac3dce89155 Mon Sep 17 00:00:00 2001 From: oliverhnat Date: Sat, 4 Oct 2025 15:51:12 +0200 Subject: [PATCH] fix(tmuxinator): make grep case insensitive --- omz-custom/tmux-sessions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omz-custom/tmux-sessions.sh b/omz-custom/tmux-sessions.sh index 047cd23..86aa983 100644 --- a/omz-custom/tmux-sessions.sh +++ b/omz-custom/tmux-sessions.sh @@ -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