Skip to content

Instantly share code, notes, and snippets.

View LukasBeaton's full-sized avatar

Lukas Beaton LukasBeaton

  • Toronto, ON, Canada
View GitHub Profile
@shmatov
shmatov / .bash_prompt
Last active January 20, 2020 10:49
Bash prompt with rvm, nvm, virtualenv and git integration.
function __git_dirty {
git diff --quiet HEAD &>/dev/null
[ $? == 1 ] && echo " ↺ "
}
function __git_branch {
__git_ps1 "%s"
}
function __my_rvm_ruby_version {