diff --git a/modules/bashrc b/modules/bashrc index faf9098..376f22b 100644 --- a/modules/bashrc +++ b/modules/bashrc @@ -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