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.
fzf
bat
(optional)
- Clone this repository
git clone https://github.com/andrewzn69/templates
- Navigate to the
templates
directory
cd templates
- Make the script executable
chmod +x templates.sh
- Optional: Add Script alias to your
.bashrc
or.zshrc
file
alias templates="~/path/to/templates.sh"
./templates
or
templates
If 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.