mkdir ~/bin
Open ~/.zpreztorc
in your editor.
Find an existing line that starts with export $PATH
.
If it exists, tack $HOME/bin:
after the equals sign and double quote.
If there is no such line, add it to the bottom as follows:
export PATH="$HOME/bin:$PATH"
curl https://gist.githubusercontent.com/kingcons/a25733c233faf10847cbb4ff557e6843/raw/2145332aa48a4d531a836079a71b8720bc88e4f7/newapp --retry 5 > ~/bin/newapp
chmod +x ~/bin/newapp
Specify 2 arguments:
- The first may be either the name of a
repo
in our course organization or a fulluser/repo
- The folder name of the new project
newapp template jquery-intro
- Navigate to your
projects
folder (or wherever you store projects) - Run
$ newapp template <project-name>
where "project-name" is the name of your project- Note that the
template
is a specific repo in our organization
- Note that the
- Change directory into your project
$ cd <project-name>
- Initialize the repo
$ git init
- Build something