diff options
-rw-r--r-- | etc/sh/rc | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -243,8 +243,16 @@ in_nix_shell() { printf ')' } +in_ssh_session() { + if [ -n "${SSH_CLIENT:-}" ]; then + color -c blackb '\\u' + printf '@' + color -c purple '\\H' + fi +} + PS1='`error_marker`'$(timestamp)' '$(path)' `shell_status``vcs ps1``guix_env``in_nix_shell` -$ ' +'$(in_ssh_session)'$ ' |