.profile: Fix naughty words in PS1

This commit is contained in:
Salt 2020-08-24 10:02:14 -05:00
parent 2d734468b2
commit e2324e420f

View File

@ -355,16 +355,16 @@ _ps1bash() {
fi fi
# Show read-only status in certain directories # Show read-only status in certain directories
if [ "$UID" = 0 ]; then if [ "$UID" = 0 ]; then
# Fuck you I'm root # Root gets the usual "#" prompt
prompt="${fg_red}#${r}" prompt="${fg_red}#${r}"
elif ! [ -d "$PWD" ]; then elif ! [ -d "$PWD" ]; then
# What the fuck happened to my directory # Something very bad has happened to our PWD, probably got deleted
prompt="${bg_red}${fg_black}!${r}" prompt="${bg_red}${fg_black}!${r}"
elif ! [ -r "$PWD" ]; then elif ! [ -r "$PWD" ]; then
# Can't read is worst case # Guess we lost privileges
prompt="${fg_red}"'$'"${r}" prompt="${fg_red}"'$'"${r}"
elif ! [ -x "$PWD" ]; then elif ! [ -x "$PWD" ]; then
# Can read it but can't search it is weird but also bad # Missing execution perms
if [ -w "$PWD" ]; then if [ -w "$PWD" ]; then
# Fixable # Fixable
prompt="${bg_blue}${fg_black}"'$'"${r}" prompt="${bg_blue}${fg_black}"'$'"${r}"