1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 14:54:23 +00:00

Change prompt username coloring

This commit is contained in:
Steffo 2021-07-15 02:57:25 +02:00
parent b6202a3f67
commit 699f8f9988
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -5,18 +5,19 @@ function fish_prompt
# User name
if test "$UID" -eq 0
switch ~
case "/root/"
# Root
set_color brred
else if test "$UID" -lt 1000
case "/srv/*"
# System account
set_color brpurple
else if test "$UID" -ge 60000
# Temporary account
set_color brcyan
else
case "/home/*"
# Regular user
set_color brgreen
case "*"
# Temporary account
set_color brcyan
end
echo -n "$USER"