Skip to content

Instantly share code, notes, and snippets.

@frankalbenesius
Last active August 5, 2022 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save frankalbenesius/23f090577f3080877b3f2ad8462a46de to your computer and use it in GitHub Desktop.
Save frankalbenesius/23f090577f3080877b3f2ad8462a46de to your computer and use it in GitHub Desktop.
shell script to open up a new dated journal file in atom
alias journal='code ~/Google\ Drive/Journal/$(date "+%Y.%m.%d-%H.%M.%S").md'
alias gbpurge='git branch --merged | grep -v "\*" | grep -v "main" | xargs -n 1 git branch -d'
reset() {
git checkout main
git pull
nvm use
nvm install-latest-npm
npm install
gbpurge
git remote prune origin
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment