From cb1c9ef54f536bf5a6b22d070d2a9073ef82238d Mon Sep 17 00:00:00 2001 From: whiteman808 Date: Fri, 13 Feb 2026 10:26:29 +0100 Subject: [PATCH] [zsh] fix and improve fallback prompt --- profiles/base/.zsh/prompt/fallback.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/base/.zsh/prompt/fallback.zsh b/profiles/base/.zsh/prompt/fallback.zsh index 7bcd274..e484ec2 100644 --- a/profiles/base/.zsh/prompt/fallback.zsh +++ b/profiles/base/.zsh/prompt/fallback.zsh @@ -1,8 +1,8 @@ if (( EUID == 0 )); then # If root, omit the username and print the hostname in red. - PS1='%1v%B%F\h %(?..%? )%F{blue}%~ # %f%b' + PS1='%1v%B%F{red}%(?..%? )%m %F{blue}%~ # %f%b' else # Otherwise, print the username and hostname in green. - PS1='%1v%B%F{green}%n@%m%F{blue} %(?..%F{red}%? %F{blue})%~ $ %f%b' + PS1='%1v%B%(?..%F{red}%? )%F{green}%n@%m%F{blue} %~ $ %f%b' fi RPROMPT=$(date '+%H:%m:%S')