aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2020-05-24 00:53:01 +0200
committerLuK1337 <priv.luk@gmail.com>2020-05-24 00:56:00 +0200
commit5f857b9e5a9accf0fc9c35be4cb024766d556275 (patch)
tree8f612faa6a77c4469035f764daebca314afe22c0
parentb330f71da7f799e1107bf9af18f00f44fe8a1841 (diff)
downloadandroid_external_bash-lineage-17.1.tar.gz
android_external_bash-lineage-17.1.tar.bz2
android_external_bash-lineage-17.1.zip
bashrc: Use full current working directory path for root as welllineage-17.1
* There's no real reason to show just the current working directory basename for root, is there? Change-Id: I5c275a94dacdcd1f375422de604ad929c8459625
-rw-r--r--etc/bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/bashrc b/etc/bashrc
index 4ea0d9a..2e7fd65 100644
--- a/etc/bashrc
+++ b/etc/bashrc
@@ -32,7 +32,7 @@ use_color=false
# enable colorful terminal
if [[ ${EUID} == 0 ]] ; then
- PS1='\[\033[01;31m\]${HOSTNAME:=$(hostname)}\[\033[01;34m\] \W \$\[\033[00m\] '
+ PS1='\[\033[01;31m\]${HOSTNAME:=$(hostname)}\[\033[01;34m\] \w \$\[\033[00m\] '
else
PS1='\[\033[01;32m\]${USER:=$(id \-un)}@${HOSTNAME:=$(hostname)}\[\033[01;34m\] \w \$\[\033[00m\] '
fi