Skip to content

Instantly share code, notes, and snippets.

@imCorfitz
Last active November 2, 2021 14:59
Show Gist options
  • Save imCorfitz/4b49dd497d55dcf93373d313bb963db7 to your computer and use it in GitHub Desktop.
Save imCorfitz/4b49dd497d55dcf93373d313bb963db7 to your computer and use it in GitHub Desktop.
Create a custom create-next-project function to facilitate creating next.js apps using https://github.com/jpedroschmitz/typescript-nextjs-starter
# $HOME/.functions
function create-next-project() {
NAME=${1:-too-lazy-to-come-up-with-a-project-name}
npx create-next-app $NAME -e https://github.com/jpedroschmitz/typescript-nextjs-starter
}
# In order to have these functions available in your terminal at all times
# make sure to add following command to your .bashrc or .zshrc file:
# source $HOME/.functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment