snippits/ps1-server.sh
2023-08-03 00:33:54 +00:00

8 lines
310 B
Bash

# Custom prompt
LINES="\[\e[36m\]" # Cyan
[ $EUID == 0 ] && LINES="\[\e[91m\]" # Red
USERHOST="\[\e[33m\]" # Yellow
DIRECTORY="\[\e[97m\]" # White
ENDCOLOR="\[\e[m\]" # Clear
PS1="${LINES}╭──(${USERHOST}\u${LINES}@${USERHOST}\h${LINES})-[${DIRECTORY}\w${LINES}]${ENDCOLOR}\n${LINES}╰─${ENDCOLOR}\$ "