aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/sh/rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index 746ddc7..a3354c1 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -246,7 +246,9 @@ in_ssh_session() {
}
vcs_status() {
- timeout 0.5 vcs ps1 || color -c red '❌'
+ timeout 0.5 vcs ps1 || if [ $? = 124 ]; then
+ color -c red '❌'
+ fi
}
PS1='`error_marker`'$(timestamp)' '$(path)' `shell_status``vcs_status``guix_env``in_nix_shell`