0.5.1 • Published 7 years ago
touch-alt v0.5.1
Create from a template instead of a new file
Install
$ npm install --global touch-altDemo

Usage
$ touch-alt --help
Create from a template instead of a new file
Usage
$ touch-alt <source>
$ touch-alt --add <source>
Options
-a, --add Create new template file
-o, --overwrite Overwrite by template
Example
$ touch-alt .editorconfigExample
Add new template file
$ cat .editorconfig
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
$ touch-alt --add .editorconfigUsage
# Use touch
$ touch .editorconfig
$ cat .editorconfig
$ rm .editorconfig
# Use touch-alt
$ touch-alt .editorconfig
$ cat .editorconfig
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = trueTip
Add alias touch=touch-alt to your .zshrc/.bashrc to reduce typing & create file easily.
Config
Default: ~/.touch-alt
$ ls ~/.touch-alt
ISSUE_TEMPLATE.md index.js readme.mdContributors
Thanks goes to these wonderful people (emoji key):
| akameco💻 📖 ⚠️ 🚇 | ryota-murakami🚇 |
|---|
This project follows the all-contributors specification. Contributions of any kind welcome!
License
MIT © akameco
