Skip to content

Instantly share code, notes, and snippets.

@mxblsdl
Created August 3, 2020 21:56
Show Gist options
  • Save mxblsdl/9b0e8cf68e42b6be9e8489ba2b2ddcc2 to your computer and use it in GitHub Desktop.
Save mxblsdl/9b0e8cf68e42b6be9e8489ba2b2ddcc2 to your computer and use it in GitHub Desktop.
Set the prompt to show the current git branch
options(prompt = glue::glue("[git] {crayon::bgRed(crayon::white(as.character(git2r::repository_head())[1]))} >"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment