Day 2, and the Start of New Things

Posted Sunday, January 29, 2012 at 7:04pm

Day two of having this blog thing, and also the day before I start a new job. If you head on over to my LinkedIn you'll see what it is. I am excited for new experiences, to put my skills towards something "real-world", and to learn from my peers. (and, yes, actually excited. Not just "need to sound interested for the interview excited")

In the meantime, how about something for coding? Here's my $PS1 + git line, originally by my friend Dan:

export PS1="\[\e[1;32m\]\u\[\e[0;39m\]@\[\e[1;31m\]\H\[\e[0;39m\] \[\e[1;34m\]\w\$(__git_ps1 \" (%s)\")\[\e[0;39m\]\n\[\e[1m\][\[\e[0m\]\$?\[\e[1m\]]\[\e[0m\] "

This will produce a prompt like the following:

mvysin@powell ~/uptime
[0] _

with the username in green, hostname in red, and the current directory in blue. If you're in a git repository, it will display the branch after the current directory.

I like this prompt instead of the default $ or # path because:

  • The command (_) is always at the same place, every line. Easy to scan down the history.
  • The exit status ([0]) is shown, not always useful, but every so often it really helps.
  • I like colors. Some people don't but it works for me.

On an administrative note, what is a blog without comments? They're coming. I'm writing this myself. Also, as once seen on twitter, "what kind of a blog doesn't have a tweet button?". Might do something about that too, or in light of my link above, a +1 button.

* * *

Hello there!

Posted Sunday, January 29, 2012 at 1:37am

Hello out there! What's this, another blog?

Well, it's time for me to try this out again. Maybe if I write short, to-the-point things then I'll start writing more and producing better content. Anyways it's a goal I have.