From e2e4236f3605983659a6b22e9e88bde8ba37b413 Mon Sep 17 00:00:00 2001 From: ls Date: Tue, 28 Jan 2025 07:24:48 +0100 Subject: [PATCH] readd prevent Termux for username --- bashrc.d/prompt.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bashrc.d/prompt.sh b/bashrc.d/prompt.sh index 3bbef85..db2c426 100644 --- a/bashrc.d/prompt.sh +++ b/bashrc.d/prompt.sh @@ -20,7 +20,10 @@ p_start() { } p_user() { - user=$(grep $USER /etc/passwd | cut -d: -f5) +if [ -z $TERMUX_VERSION ] + then + user=$(grep $USER /etc/passwd | cut -d: -f5) + fi if [ -z $user ] then echo -e "${bg_orange}${fg_noir}\u"