aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Pasanen <dan.pasanen@gmail.com>2015-11-24 09:54:51 -0600
committerDan Pasanen <dan.pasanen@gmail.com>2015-11-24 09:54:51 -0600
commit3e80b52e4a09094ca053ede91af46e37d907675a (patch)
tree27ed231d3ad0a0beb851bd6567c7a963f460ca5b
parent76a049a87534099aaf276a677db0a3d634de0186 (diff)
downloadandroid_external_bash-3e80b52e4a09094ca053ede91af46e37d907675a.tar.gz
android_external_bash-3e80b52e4a09094ca053ede91af46e37d907675a.tar.bz2
android_external_bash-3e80b52e4a09094ca053ede91af46e37d907675a.zip
bashrc: correct PS1
Change-Id: I46623b6912444d74981087e00d1210f95613f655
-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'