Skip to content

Instantly share code, notes, and snippets.

View babymotte's full-sized avatar

Michael Bachmann babymotte

  • Bavaria, Germany
View GitHub Profile
@babymotte
babymotte / 01-git-prompt
Last active September 22, 2021 23:28
My personal git bash prompt, suitable for dropping into ~/.bashrc.d
# in order for this to work, you must do the following once:
# curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh
CRAB='$([ -f "./Cargo.toml" ] && echo " 🦀")'
ROCKET='$([ -f "./Rocket.toml" ] && echo " 🚀")'
COFFEE='$(([ -f "./pom.xml" ] || [ -f "./build.gradle" ] || [ -f "./gradlew" ]) && echo " ☕")'
WEB='$(([ -f "./package.json" ] || [ -f "./webpack.config.js" ]) && echo " 🕸 ")'
GOPHER='$([ -f "./go.mod" ] && echo " ʕ◔ϖ◔ʔ")'
CYAN="\[$(tput setaf 6)\]"

Keybase proof

I hereby claim:

  • I am babymotte on github.
  • I am mbachmann (https://keybase.io/mbachmann) on keybase.
  • I have a public key ASCyUpX7Kpc0b6q8GlAlg9MCqYZaAqV_olskCMkrbPCPdQo

To claim this, I am signing this object: