Skip to content

Instantly share code, notes, and snippets.

Sean O'Connor SeanOC

Block or report user

Report or block SeanOC

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@malcolmt
malcolmt / Malcolm's $PS1 prompt
Created Sep 17, 2010
People keep asking about my fancy bash prompt (I've been using it since the mid-90's). So, here it is.
View Malcolm's $PS1 prompt
.-(malcolm@djelibeybi 15:19:34) ~
`--> echo $PS1
\n\[\033[35m\].-(\[\033[33m\]\u@\h \[\033[36m\]\t\[\033[35m\]) \[\033[0m\]\w\n\[\033[35m\]\`-->\[\033[0m\]
I should note that in my .bashrc file, I enter the information like this:
# My fancy two-line, colored prompt
e=\\\033
export PS1="\n\[$e[35m\].-(\[$e[33m\]\u@\h \[$e[36m\]\t\[$e[35m\])\[$e[0m\]\w\n\[$e[35m\]\\\`-->\[$e[0m\] "
You can’t perform that action at this time.