From 2dc20ed151a332c110f6e547e863bf10c00e8daf Mon Sep 17 00:00:00 2001 From: John Mertz Date: Fri, 4 Nov 2022 23:05:08 -0400 Subject: [PATCH] Sigals to denote terminal type --- bash/prompt.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bash/prompt.sh b/bash/prompt.sh index b1640b107..0a1de6976 100755 --- a/bash/prompt.sh +++ b/bash/prompt.sh @@ -92,6 +92,14 @@ function parse_git_dirty { # Comment - allow for command history to be copied directly to bash script PS1="${COLOURS["$PC","PS"]}# " +if [ -f "/run/.containerenv" ]; then + # Sigil to indicate host, distrobox or ssh + PS1="${COLOURS["0","PS"]}⧉ " +elif [[ -z $SSH_CLIENT ]]; then + PS1="${COLOURS["1","PS"]}⌂ " +else + PS1="${COLOURS["1","PS"]}🖧 " +fi # Time PS1="${PS1}${COLOURS["$TC","PS"]}\\t "