aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/bashrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/bashrc b/etc/bashrc
index 655f516..d91dfd0 100644
--- a/etc/bashrc
+++ b/etc/bashrc
@@ -32,9 +32,9 @@ use_color=false
# enable colorful terminal
if [[ ${EUID} == 0 ]] ; then
- PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
+ PS1='\[\033[01;31m\]${HOSTNAME:=$(hostname)}\[\033[01;34m\] \W \$\[\033[00m\] '
else
- PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
+ PS1='\[\033[01;32m\]${USER:=$(id \-un)}@${HOSTNAME:=$(hostname)}\[\033[01;34m\] \w \$\[\033[00m\] '
fi
alias sysro='mount -o remount,ro /system'