From e66228c10731b4aa070f58b7fb641e121a17eec9 Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 20 Oct 2022 09:00:14 +0200 Subject: [PATCH] Add python data science type in project-init --- scripts/.local/share/scripts/project-init | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/.local/share/scripts/project-init b/scripts/.local/share/scripts/project-init index b218027..2d99f36 100755 --- a/scripts/.local/share/scripts/project-init +++ b/scripts/.local/share/scripts/project-init @@ -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