Created
August 3, 2020 21:56
-
-
Save mxblsdl/9b0e8cf68e42b6be9e8489ba2b2ddcc2 to your computer and use it in GitHub Desktop.
Set the prompt to show the current git branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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