From bb020f110c2526d5dd446e7a1a071e269880b71c Mon Sep 17 00:00:00 2001 From: John Turner Date: Thu, 17 Jul 2025 16:56:13 -0400 Subject: init --- prompt.zsh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 prompt.zsh (limited to 'prompt.zsh') diff --git a/prompt.zsh b/prompt.zsh new file mode 100644 index 0000000..08b5b7e --- /dev/null +++ b/prompt.zsh @@ -0,0 +1,13 @@ +if [[ $(id --user --name) = "notroot" && $(hostname 2>/dev/null) = "gentoo-pc" ]]; then + export PROMPT="%F{green}%B%n@%M%b%f %F{blue}%~ %B%#%b%f " +elif [[ $(id --user --name) = "root" ]]; then + export PROMPT="%F{red}%B%n@%M%b%f %F{blue}%~ %B%#%b%f " +else + export PROMPT="%F{light_white}%B%n@%M%b%f %F{blue}%~ %B%#%b%f " +fi + +PROMPT="(%L) ${PROMPT}" + +if [[ -n ${BWRAP} ]]; then + export PROMPT="(bwrap sandbox) ${PROMPT}" +fi -- cgit v1.2.3