From 78bb1ec9f7dbe2199a7346b250dea81a5052aa3f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 2 Apr 2023 17:08:37 -0300 Subject: etc/sh/rc: Fix vcs-ps1 outside repository --- etc/sh/rc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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` -- cgit v1.2.3