Add python data science type in project-init

This commit is contained in:
coolneng 2022-10-20 09:00:14 +02:00
parent 1d2e5d0571
commit e66228c107
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,7 @@ usage() {
echo "type src: Simple coding project"
echo "type doc: Assignment"
echo "type nix-ld: Run unpatched programs with Nix"
echo "type datasci: Python data science project"
exit 1
}
@ -15,6 +16,8 @@ copy_nix_files() {
cp ~/Documents/IT/flake-template.nix flake.nix
elif [ "$1" = "nix-ld" ]; then
cp ~/Documents/IT/nix-ld.nix shell.nix
elif [ "$1" = "datasci" ]; then
cp ~/Projects/devenv/python-data-science.nix shell.nix
fi
cp ~/Documents/IT/shell.nix .
}
@ -73,6 +76,11 @@ elif [ "$type" = "src" ]; then
elif [ "$type" = "nix-ld" ]; then
copy_nix_files "nix-ld"
direnv_integration "nix"
elif [ "$type" = "datasci" ]; then
copy_nix_files "nix"
create_dir data
touch .project
direnv_integration "nix"
else
usage
fi