If anyone else is like me and constantly forgets to check if they need to pull from github when switching between computers (until you create a merge conflict and it's too late), pop this in the #rstats project's .Rprofile:
cat(crayon::cyan(system("git status -u no", T)))
2
7
62
Yep. It tends to become muscle memory, or you learn when you try to commit and the repo is behind :)
BTW the higher-end variant is to edit the PS1 variable for your shell to show `git status`. There are a number of tutorials out there that should help given your shell.
Feb 27, 2022 · 10:26 PM UTC
1
1

