summaryrefslogtreecommitdiff
path: root/prompt.zsh
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-07-17 16:56:13 -0400
committerJohn Turner <jturner.usa@gmail.com>2025-07-17 16:57:31 -0400
commitbb020f110c2526d5dd446e7a1a071e269880b71c (patch)
treedc94f4bf277194ef2a87569fe6514dcd1b44e323 /prompt.zsh
downloadzshrc-bb020f110c2526d5dd446e7a1a071e269880b71c.tar.gz
init
Diffstat (limited to 'prompt.zsh')
-rw-r--r--prompt.zsh13
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