Parcourir la source

Fix bash prompt folder display

Without quotes, it was cutting off everything after a space e.g.
"Application Support" would display "Application".
Weiyi Lou il y a 9 ans
Parent
commit
2a1dbe5ff9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      shell/bashrc

+ 1 - 1
shell/bashrc

@@ -28,7 +28,7 @@ function shortcwd() {
   local folder=$(pwd) fld='[^/]*'
   folder=${folder/$HOME/"~"}
   folder=$(echo $folder | sed 's|.*/\('$fld'/'$fld'/'$fld'\)|\1|')
-  printf $folder
+  printf "$folder"
 }
 
 [ -f ~/.fzf.bash ] && source ~/.fzf.bash