Skip to content

Instantly share code, notes, and snippets.

@HanjoStudy
Created August 17, 2020 12:49
Show Gist options
  • Save HanjoStudy/5dc4263bf52702d4831bc08a50e34d08 to your computer and use it in GitHub Desktop.
Save HanjoStudy/5dc4263bf52702d4831bc08a50e34d08 to your computer and use it in GitHub Desktop.
git_console
if(requireNamespace("prompt", quietly = TRUE)){
#devtools::install_github("gaborcsardi/prompt@x")
prompt_git <- function( ... ){
paste0(
"[", prompt::git_branch(), "]", ">"
)
}
prompt::set_prompt(prompt_git)
rm(prompt_git)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment