first draft ssh area

This commit is contained in:
frosty 2024-08-23 00:36:09 -04:00
parent 78c71e052c
commit 4202ddd068

View file

@ -23,6 +23,8 @@ PROMPT_COL_SUCCESS='\[\e[1;32m\]'
PROMPT_COL_FAILURE='\[\e[1;31m\]'
# Line color
PROMPT_COL_LINE='\[\e[0;37m\]'
# SSH notice color
PROMPT_COL_SSH='\[\e[1;32m\]'
# Time format
PROMPT_TIME_FORMAT='%H:%M:%S'
# Prompt character
@ -77,7 +79,7 @@ _prompt_command() {
# Top part of line
[ "$PROMPT_ENABLE_LINE" -eq 1 ] && PS1+="${PROMPT_COL_LINE}"
# Date (HH:MM:SS)
# Date
PS1+="${PROMPT_COL_TIME}\D{${PROMPT_TIME_FORMAT}} "
# user@host OR root
@ -101,6 +103,9 @@ _prompt_command() {
# Bottom part of line
[ "$PROMPT_ENABLE_LINE" -eq 1 ] && PS1+="${PROMPT_COL_LINE}"
# SSH information (if applicable)
[ -n "$SSH_CLIENT" ] && PS1+="${PROMPT_COL_SSH}SSH "
# Prompt character
PS1+="${prompt_color}${PROMPT_CHARACTER} "