aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-01-19 10:44:16 -0300
committerEuAndreh <eu@euandre.org>2025-01-19 10:44:16 -0300
commit1f82fc334b19dec31b253653a5b4016fb843c71b (patch)
treec24c573e414ed276dffb245fa1a5d4e23724396b /etc
parentbin/vcs: Support file rename in git_ps1() (diff)
downloaddotfiles-1f82fc334b19dec31b253653a5b4016fb843c71b.tar.gz
dotfiles-1f82fc334b19dec31b253653a5b4016fb843c71b.tar.xz
etc/sh/rc: Parameterize timeout of "vcs ps1"
Diffstat (limited to 'etc')
-rw-r--r--etc/sh/rc3
1 files changed, 2 insertions, 1 deletions
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
}