template_clone / README.markdown

clone - creates files based on templates that live in ~/.clone_templates

Examples: $ clone new .hgrc #<-- create a new template called .hgrc. It will open this in $EDITOR $ clone edit .hgrc # <-- edits the template .hgrc $ clone clone .hgrc .hgrc_here #<-- clones the template .hgrc to the file, in the current directory, name .hgrc_here $ clone clone .hgrc ~/Temp/hgrc_here #<-- clones .hgrc to ~/Temp/hgrc_here

Why?

I need to create the same files over and over again on the command line. For example, .hgignore files, .gitignore files for Rails, README.markdown files for new projects I create etc.

There are some solution in the GUI space for this, but nothing that I found on the command line.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.