From f6ace04d40399e702cb4bc4ece941308d91afed9 Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 16 Nov 2022 09:40:25 +0100 Subject: [PATCH] Add existing project init to project-init --- scripts/.local/share/scripts/project-init | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/.local/share/scripts/project-init b/scripts/.local/share/scripts/project-init index 4eee449..7995d20 100755 --- a/scripts/.local/share/scripts/project-init +++ b/scripts/.local/share/scripts/project-init @@ -5,6 +5,7 @@ usage() { echo "type git: VCS project" echo "type remote-git: VCS project with README, LICENSE and tests" echo "type src: Simple coding project" + echo "type init: Initialize populated project" echo "type doc: Assignment" echo "type nix-ld: Run unpatched programs with Nix" echo "type datasci: Python data science project" @@ -74,6 +75,9 @@ elif [ "$type" = "src" ]; then create_dir src touch .project direnv_integration "nix" +elif [ "$type" = "init" ]; then + touch .project + direnv_integration "nix" elif [ "$type" = "nix-ld" ]; then copy_nix_files "nix-ld" direnv_integration "nix"