.profile: Use prompt flags instead of hacked together BS for PS1
This commit is contained in:
parent
fbdbc6d3c0
commit
53d253d3e0
6
.profile
6
.profile
@ -348,11 +348,7 @@ _ps1bash() {
|
||||
;;
|
||||
esac
|
||||
# Show the tilde instead of $HOME
|
||||
if [ "${PWD#$HOME}" != "$PWD" ]; then
|
||||
cpwd="~${PWD#$HOME}"
|
||||
else
|
||||
cpwd="$PWD"
|
||||
fi
|
||||
cpwd='\w'
|
||||
# Show read-only status in certain directories
|
||||
if [ "$UID" = 0 ]; then
|
||||
# Root gets the usual "#" prompt
|
||||
|
Reference in New Issue
Block a user