From 74a0f0ca8c01d7be4a8c30d8ba20685c2dd1ca9c Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sun, 24 May 2020 00:53:01 +0200 Subject: [PATCH] bashrc: Use full current working directory path for root as well * There's no real reason to show just the current working directory basename for root, is there? Change-Id: I5c275a94dacdcd1f375422de604ad929c8459625 --- etc/bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/bashrc b/etc/bashrc index 43f87f7..ce268eb 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