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