Today I was updating rvm and it said my name.
And I wondered how it knew?
Was it psychic?
Were they watching me, right now, outside my office window??
No, its just this:
name=$(git config user.name 2>/dev/null)
${name:-"${USER:-$(id | sed -e 's/^[^(]*(//' -e 's/).*$//')}"}
Fun!
⦂∀