added new project script

This commit is contained in:
Djeeberjr 2023-09-05 17:08:38 +02:00
parent d2c122e4c9
commit 8b2a21af68

View File

@ -0,0 +1,29 @@
#!/bin/bash
set -e
TYPES="Golang,Vite"
CHOISE=$(echo $TYPES | tr "," "\n" | fzf)
if [ -z "$CHOISE" ]; then
echo "No choise"
exit 1
fi
cd $HOME/projects
case $CHOISE in
Golang)
cookiecutter https://git.kapelle.org/niklas/cookiecutter-golang
;;
Vite)
npm create vite@latest
;;
*)
echo "Unknown"
;;
esac
ls -ltd ./*/ | head -n 1 | awk '{print $9}' | xargs -I {} code {}