Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
User Journal

Journal planckscale's Journal: custom smiley bash prompt

to change the root prompt:

issue command:

#vi /etc/profile

near bottom of file change

PS1 line to

PS1="\u@\h \[\e[33m\]\W\[\e[0m\] \[\`if [[ \$? = "0" ]]; then echo '\e[32m=)\e[0m'; else echo '\e[31m=(\e[0m' ; fi\`\] \$ "

This discussion has been archived. No new comments can be posted.

custom smiley bash prompt

Comments Filter:

Anyone can make an omelet with eggs. The trick is to make one with none.

Working...