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.
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
Post a Comment