This is a simple shell script that automates the process of creating a new bash script project and initializing Git repository.
- Bash installed on your system
- Git installed on your system
-
Clone this repository or download the
bash_project_create.shscript. -
Open a terminal and navigate to the directory where you want to create your project.
-
Place
bash_project_create.shscript in that directory -
Run the script using the following command:
sh /path/to/bash_project_create.sh project_name
- The script will create a new directory named with
project_name - Initialize a Git repository
- Set repository branch to
main - Create a
README.mdfile with theproject nameas its contents. - Create a empty
LICENCEfile. - Create a empty
.gitignorefile . - Create a shell file with the name
project_name.sh, make it executable and add a shebang line.
You can start working on your project by opening the project directory in your favorite code editor.
This script is released under the MIT License. Feel free to modify and use it however you like.