A simple bash script to perform the following functions:
- Copy the file into a
bin
folder in your home directory, and add it to the path. - Change permissions with this command:
sudo chmod +x site
- Restart terminal session and type
site
to see the options.
Navigate to the Jekyll project directory and use the script in the following format: site <command>
The commands for use are:
build
the sitepush
to gitdemo
locallyopen
source folder in editor of choicefiles
opens the site folder in a file managermeta
opens the scriptpublish
uses surge to deploy the static site. You can replace this part as per your needs.
Feel free to edit and customise this script. I use a modified version of this script for my personal blogs and websites.
This version uses the following programs:
- Sublime Text (editor of choice) due to its speed in opening large number of files quickly.
- Surge.sh , my favourite static site hosting service.