From 89579e1ab9a0603f57fffc3154c819baad409991 Mon Sep 17 00:00:00 2001 From: mattia Date: Sat, 24 Feb 2024 16:28:19 +0100 Subject: [PATCH] bashrc: Update interactive shell detection condition Bash manual defines a shell as interactive if "$PS1" is set, there's no need to check it against a specific string. --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 7b1aa2f..5177a92 100644 --- a/bashrc +++ b/bashrc @@ -90,6 +90,6 @@ fi # Include customized configurations for interactive shell -if [ "$PS1" = "[\u@\h \W]\\$ " ]; then +if [ "$PS1" ]; then source /etc/bashrc.cust fi