diff options
author | EuAndreh <eu@euandre.org> | 2023-08-07 19:52:50 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-08-07 19:52:50 -0300 |
commit | e2879b606b7bd6914317cb5e1aa413b0752823d3 (patch) | |
tree | 729ff2df3e522421c87256d0e12515906011ca82 /bin | |
parent | Makefile: Add proper dependency between txt files and script (diff) | |
download | dotfiles-e2879b606b7bd6914317cb5e1aa413b0752823d3.tar.gz dotfiles-e2879b606b7bd6914317cb5e1aa413b0752823d3.tar.xz |
bin/aux: Add -i option
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/aux | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -6,6 +6,7 @@ usage() { cat <<-'EOF' Usage: aux [FILE...] + aux -i aux -h EOF } @@ -15,6 +16,7 @@ help() { Options: + -i init a new project repository -h, --help show this message FILE specific path to be written @@ -34,6 +36,11 @@ help() { Get only the "tests/assert-shellcheck.sh" file: $ aux tests/assert-shellcheck.sh + + + Start a new project repository in the current directory: + + $ aux -i EOF } @@ -53,8 +60,14 @@ for flag in "$@"; do esac done -while getopts 'h' flag; do +while getopts 'ih' flag; do case "$flag" in + (i) + git init + git commit --allow-empty -m 'Initial empty commit' + touch FIXME + mkdir -p vendor + ;; (h) usage help |