added new project script
This commit is contained in:
parent
d2c122e4c9
commit
8b2a21af68
29
.local/share/scripts/new-project.sh
Executable file
29
.local/share/scripts/new-project.sh
Executable 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 {}
|
Loading…
Reference in New Issue
Block a user