aboutsummaryrefslogtreecommitdiff
path: root/bashrc.d
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc.d')
-rw-r--r--bashrc.d/prompt4
1 files changed, 3 insertions, 1 deletions
diff --git a/bashrc.d/prompt b/bashrc.d/prompt
index dee3e53..6632037 100644
--- a/bashrc.d/prompt
+++ b/bashrc.d/prompt
@@ -1,8 +1,10 @@
# vim: ft=sh
PS1='$(
-if [ `id -u` -eq "0" ]; then
+if [ "$(id -u)" -eq "0" ]; then
echo -n "\[\e[1;31m\]\u@\h:\[\e[1;34m\]\W\[\e[1;31m\]\$\[\e[0m\] "
+elif [ "${_SHELLRC:-}" = "develop" ]; then
+ echo -n "\[\e[1;33m\]\u@\h:\[\e[1;34m\]\W\[\e[1;33m\]\$\[\e[0m\] "
else
echo -n "\[\e[1;32m\]\u@\h:\[\e[1;34m\]\W\[\e[1;32m\]\$\[\e[0m\] "
fi)'