Chivier / zenplash

ZSH plugin who creates files from template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zenplash

ZSH plugin to create files from template folder.

Usage

show

There are 2 modes for Zenplash:

  1. create mode: copy the template directory and rename
  2. copyin mode: copy files from the template directory

Installation

Clone the repo

cd $ZSH_CUSTOM/plugins
git clone https://github.com/Chivier/zenplash.git

Activate the plugin

Edit $HOME/.zshrc

plugins+=(zenplash)

Define templates

The default templates directory is: $ZSH_CUSTOM/plugins/zenplash/templates

Also, custom path can be set in $HOME/.config/zenplash.conf

Each template is held in a folder, naming like 'ALIAS,DETAIL'

ALIAS is the shortcut name for the template, and DETAIL describe this template briefly.

Todo

  • Create template based on current directory

Refereces

Thanks to following projects, provides splendid templates for me:

About

ZSH plugin who creates files from template

License:Apache License 2.0


Languages

Language:C++ 66.7%Language:C 22.6%Language:Python 8.0%Language:CMake 0.8%Language:Shell 0.7%Language:M4 0.4%Language:Starlark 0.4%Language:Makefile 0.3%Language:Cuda 0.0%