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