aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/sh/rc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index c894be6..746ddc7 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -245,7 +245,11 @@ in_ssh_session() {
fi
}
-PS1='`error_marker`'$(timestamp)' '$(path)' `shell_status``vcs ps1``guix_env``in_nix_shell`
+vcs_status() {
+ timeout 0.5 vcs ps1 || color -c red '❌'
+}
+
+PS1='`error_marker`'$(timestamp)' '$(path)' `shell_status``vcs_status``guix_env``in_nix_shell`
'$(in_ssh_session)'$ '