Skip to content

Personal template collection with shell script using fzf.

License

Notifications You must be signed in to change notification settings

andrewzn69/templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Template Copier Shell Script

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.

Prerequisites

  • fzf
  • bat (optional)

Installation

  1. Clone this repository
git clone https://github.com/andrewzn69/templates
  1. Navigate to the templates directory
cd templates
  1. Make the script executable
chmod +x templates.sh
  1. Optional: Add Script alias to your .bashrc or .zshrc file
alias templates="~/path/to/templates.sh"

Usage

./templates

or

templates

Troubleshooting

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.

Contributing

Feel free to open an issue or submit a pull request if you have any suggestions or improvements.