diff options
author | EuAndreh <eu@euandre.org> | 2023-04-02 16:35:33 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-04-02 16:35:33 -0300 |
commit | 8e50918dfaf5a27943e13f59dca68f1f00c22b83 (patch) | |
tree | 52b982378039354bea379ac14634b1880b2d4cc8 | |
parent | etc/ssh/authorized_keys: Disallow root@toph key (diff) | |
download | dotfiles-8e50918dfaf5a27943e13f59dca68f1f00c22b83.tar.gz dotfiles-8e50918dfaf5a27943e13f59dca68f1f00c22b83.tar.xz |
etc/sh/rc: Add timeout to vcs(1) ps1
-rw-r--r-- | etc/sh/rc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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)'$ ' |