diff options
author | John Turner <jturner.usa@gmail.com> | 2025-07-17 16:56:13 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2025-07-17 16:57:31 -0400 |
commit | bb020f110c2526d5dd446e7a1a071e269880b71c (patch) | |
tree | dc94f4bf277194ef2a87569fe6514dcd1b44e323 /prompt.zsh | |
download | zshrc-bb020f110c2526d5dd446e7a1a071e269880b71c.tar.gz |
init
Diffstat (limited to 'prompt.zsh')
-rw-r--r-- | prompt.zsh | 13 |
1 files changed, 13 insertions, 0 deletions
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 |