beatific: fix PS1 with spaces
This commit is contained in:
parent
265ed5b9e7
commit
bf4b31f4fc
@ -12,8 +12,8 @@ _pwd_home () {
|
||||
# Shorten path dir names
|
||||
_pwd () {
|
||||
DIR=$(_pwd_home)
|
||||
[ "$DIR" != "/" ] && [ "$DIR" != "~" ] && printf '%s/' $(dirname $DIR | tr / '\n' | cut -c-1)
|
||||
printf $(basename $DIR)
|
||||
[ "$DIR" != "/" ] && [ "$DIR" != "~" ] && printf '%s/' $(dirname "$DIR" | tr / '\n' | cut -c-1)
|
||||
printf "$(basename "$DIR")"
|
||||
}
|
||||
_DIR='$(_pwd)'
|
||||
# Color codes
|
||||
|
Loading…
Reference in New Issue
Block a user