1
1
Fork 0

beatific: fix PS1 with spaces

This commit is contained in:
Tim Van Baak 2024-01-31 00:06:09 +00:00
parent 265ed5b9e7
commit bf4b31f4fc
1 changed files with 2 additions and 2 deletions

View File

@ -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