bash - PS1 Style Formatting -


i trying make bash profile cool, , outright stole example posted on internet (can't remember though; claim no credit it). managed of different quirks wanted work , got of color , syntax codes working on arch box, on macbook, terminal app shows huge space between bracket , number of files in pwd. appreciate in making pretty since kind of bums me out @ space.ps1 prompt

i have included ps1 below:

export ps1="┌─[\`if [ \$? = 0 ]; echo \[\e[32m\]✔\[\e[0m\]; else echo \[\e[31m\]✘\[\e[0m\]; fi\`]───[\[\e[01;49;39m\]\u\[\e[00m\]\[\e[01;49;39m\]\[\e[00m\]]───[\[\e[1;49;39m\]\w\[\e[0m\]]───[\[\e[1;49;39m\]\$(ls | wc -l) files, \$(ls -lah | grep -m 1 total | sed 's/total //')\[\e[0m\]]\n└───▶ " 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -