Sigals to denote terminal type

This commit is contained in:
John Mertz 2022-11-04 23:05:08 -04:00
parent 415c3cb185
commit 2dc20ed151
1 changed files with 8 additions and 0 deletions

View File

@ -92,6 +92,14 @@ function parse_git_dirty {
# Comment - allow for command history to be copied directly to bash script # Comment - allow for command history to be copied directly to bash script
PS1="${COLOURS["$PC","PS"]}# " 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 # Time
PS1="${PS1}${COLOURS["$TC","PS"]}\\t " PS1="${PS1}${COLOURS["$TC","PS"]}\\t "