So I found a cool bash prompt from this reddit thread: https://www.reddit.com/r/archlinux/comments/5vusvx/here_is_my_bash_prompt_whats_your_favorite/
The one I was testing out was the top comment by @khordes. Here is what is expected: https://i.stack.imgur.com/917bh.jpg
However, I get something a little different. Here is where the issue is:
───[~]───[ 33 files, 2334400]
As you can see there is quite a lot of space before the number of files. The actual code is here:
PS1="┌─[\`if [ \$? = 0 ]; then echo \[\e[32m\]✔\[\e[0m\]; else echo \[\e[31m\]✘\[\e[0m\]; fi\`]───[\[\e[01;49;39m\]\u\[\e[00m\]\[\e[01;49;39m\]@\H\[\e[00m\]]───[\[\e[1;49;34m\]\W\[\e[0m\]]───[\[\e[1;49;39m\]\$(ls | wc -l) files, \$(ls -lah | grep -m 1 total | sed 's/total //')\[\e[0m\]]\n└───▶ "
Any input on how to fix that would be greatly appreciated.