From 25f53401622ebf97cd463da2490b6e98f481aa0f Mon Sep 17 00:00:00 2001 From: The Magician Date: Fri, 9 Aug 2024 14:08:24 +0100 Subject: [PATCH] Use glob comparison properly --- bash/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/.bashrc b/bash/.bashrc index e7e4501..9995d33 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -73,7 +73,7 @@ md() { } # Automatically run X if this is a login tty -[[ "$(tty)" == /dev/tty* ]] && ! pgrep -u "$(whoami)" -x Xorg >/dev/null && startx +[[ "$(tty)" =~ /dev/tty* ]] && ! pgrep -u "$(whoami)" -x Xorg >/dev/null && startx # Automatically run tmux if we aren't already in a session and there's no matching session already running if [[ -z "$TMUX" ]] && ! tmux list-sessions 2>/dev/null | grep --quiet "$HOSTNAME"; then