Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewzn69/templates
Personal template collection with shell script using fzf.
https://github.com/andrewzn69/templates
ansible bash docker-compose fzf github-actions kubernetes markdown proxmox templates terraform typst vagrant
Last synced: 2 months ago
JSON representation
Personal template collection with shell script using fzf.
- Host: GitHub
- URL: https://github.com/andrewzn69/templates
- Owner: andrewzn69
- License: mit
- Created: 2023-12-02T14:31:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-18T00:19:25.000Z (about 1 year ago)
- Last Synced: 2024-08-02T15:49:09.868Z (5 months ago)
- Topics: ansible, bash, docker-compose, fzf, github-actions, kubernetes, markdown, proxmox, templates, terraform, typst, vagrant
- Language: HCL
- Homepage:
- Size: 262 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
git clone https://github.com/andrewzn69/templates
```
2. Navigate to the `templates` directory
```bash
cd templates
```
3. Make the script executable
```bash
chmod +x templates.sh
```
4. Optional: Add Script alias to your `.bashrc` or `.zshrc` file
```bash
alias templates="~/path/to/templates.sh"
```## Usage
```bash
./templates
```
or
```bash
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.