Add python data science type in project-init
This commit is contained in:
parent
1d2e5d0571
commit
e66228c107
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue