I've looked everywhere and can't find anything. How do I change the color of this whole line in the terminal?
user@MacBook-Pro ~ %
I tried all solutions above, but none of them work with new ZSH terminal on MacOS, so, I discover a new solution.
cd ~
;.zshrc
with: touch .zshrc
;vi .zshrc
;press I key
;CMD + V
:NEWLINE=$'\n'
DATE=$( date +"[%Y-%m-%d %H:%M:%S]" )
PROMPT="${NEWLINE}%F{yellow}${DATE} %(!.%F{red}.%F{white})%n%F{cyan}@%m %F{yellow}%d${NEWLINE}%F{reset}> "
press ESC
;press :wq
;Source: https://askubuntu.com/a/549150/1127802
You can use this generator for customize your PROMPT - https://zsh-prompt-generator.site/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With