aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-08-07 19:52:50 -0300
committerEuAndreh <eu@euandre.org>2023-08-07 19:52:50 -0300
commite2879b606b7bd6914317cb5e1aa413b0752823d3 (patch)
tree729ff2df3e522421c87256d0e12515906011ca82 /bin
parentMakefile: Add proper dependency between txt files and script (diff)
downloaddotfiles-e2879b606b7bd6914317cb5e1aa413b0752823d3.tar.gz
dotfiles-e2879b606b7bd6914317cb5e1aa413b0752823d3.tar.xz
bin/aux: Add -i option
Diffstat (limited to 'bin')
-rwxr-xr-xbin/aux15
1 files changed, 14 insertions, 1 deletions
diff --git a/bin/aux b/bin/aux
index 73c91ca..9de9720 100755
--- a/bin/aux
+++ b/bin/aux
@@ -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