From 1f82fc334b19dec31b253653a5b4016fb843c71b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 19 Jan 2025 10:44:16 -0300 Subject: etc/sh/rc: Parameterize timeout of "vcs ps1" --- etc/sh/rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/sh/rc b/etc/sh/rc index a0cbd02..5ca33e7 100644 --- a/etc/sh/rc +++ b/etc/sh/rc @@ -339,8 +339,9 @@ makeflags_status() { fi } +VCS_PS1_TIMEOUT=0.5 vcs_status() { - timeout 0.5 vcs ps1 || if [ $? = 124 ]; then + timeout "$VCS_PS1_TIMEOUT" vcs ps1 || if [ $? = 124 ]; then color -c red '❌' fi } -- cgit v1.2.3