mkproj is a family of three Bash functions.
$ mkproj
<-- parent function
$ mkvenv
<-- child function #1
$ mkrepo
<-- child function #2
The functions have been tested in GNU Bash, version 5.0.17 on Ubuntu 20.04. They should work in other Bash 5.0+ environments (assuming Python 3.5+, Git, and Curl are installed).
- Python 3.5+ (tested with Python 3.8.5)
- Python venv module
- Git
- A GitHub account with
- Curl
(define these in the ~/.bashrc
file)
GITHUB_USERNAME
GITHUB_TOKEN
GITHUB_TEMPLATE_REPO
(the name of a template repository)
-
Fork the mkproj repo to your GitHub account.
-
Clone the mkproj repo from your GitHub account to your local drive.
-
Copy the
mkproj
,mkvenv
, andmkrepo
files into a~/<directory>
of your choice. -
Add the following to the
~/.bashrc
file:source ~/<directory>/mkproj
source ~/<directory>/mkvenv
source ~/<directory>/mkrepo
-
You will have to restart the shell or run
$ source ~/.bashrc
for the functions to take effect.