Templates v2?

arch
kalle 2023-07-01 17:35:03 +02:00
parent 4f1d3f9c97
commit 7582080133
2 changed files with 15 additions and 0 deletions

3
templates/scripts/latex-test Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "Latex Test: '$1'"

12
templates/templ Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
BASE_DIR=`dirname "$0"`
TO_CREATE=`ls "$BASE_DIR"/scripts | fzf`
read -p "Directory [.]: " WHERE
WHERE=${WHERE:-.}
mkdir -p "$WHERE"
"$BASE_DIR/scripts/$TO_CREATE" "$WHERE"