This shell script allows you to copy template files from a predefined template directory to your current working directory. It uses fzf for file and language selection, providing a user-friendly interface for template selection.
fzfbat(optional)
- Clone this repository
git clone https://github.com/andrewzn69/templates- Navigate to the
templatesdirectory
cd templates- Make the script executable
chmod +x templates.sh- Optional: Add Script alias to your
.bashrcor.zshrcfile
alias templates="~/path/to/templates.sh"./templatesor
templatesIf you get an error about fzf not being found, make sure you have fzf installed and in your PATH.
If you get an error about the template directory not existing, make sure the TEMPLATE_DIR variable points to a valid directory.
Feel free to open an issue or submit a pull request if you have any suggestions or improvements.