dotfiles/templates/templ

13 lines
198 B
Plaintext
Raw Permalink Normal View History

2023-07-01 17:35:03 +02:00
#!/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"