diff options
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 |