summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsn <mail@mhsn.net>2024-12-01 12:01:01 +0000
committermhsn <mail@mhsn.net>2024-12-01 12:01:01 +0000
commit80a23b6e29b251aadbe72c9fba23176aabae0b56 (patch)
treef4086303c774433db1d226c0c3cc53c0f647e346
parent9015922392c9881ca62871692c3a6671243c1fe3 (diff)
downloadaoc-80a23b6e29b251aadbe72c9fba23176aabae0b56.tar.gz
aoc-80a23b6e29b251aadbe72c9fba23176aabae0b56.zip
Add .gitignores to init script
-rwxr-xr-xinit2
1 files changed, 2 insertions, 0 deletions
diff --git a/init b/init
index 422d762..a8caa51 100755
--- a/init
+++ b/init
@@ -24,10 +24,12 @@ fi
if [[ ! -d $aoc_path/python ]]; then
mkdir --parents $aoc_path/python
cp "$script_path/template/main.py" "$aoc_path/python/main.py"
+ echo "*" > "$aoc_path/python/.gitignore"
fi
# Rust
if [[ ! -d $aoc_path/rust ]]; then
cargo new "$aoc_path/rust" --vcs none --name "aoc_$year-$day"
cp "$script_path/template/main.rs" "$aoc_path/rust/src/main.rs"
+ echo "*" > "$aoc_path/rust/.gitignore"
fi