From 41a1f519e9fb7e56ad4e025e0cb8ba16ab08ca3c Mon Sep 17 00:00:00 2001 From: michaelmass <10071388+michaelmass@users.noreply.github.com> Date: Fri, 20 Feb 2026 23:12:18 -0500 Subject: [PATCH] update --- nushell/init.nu | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nushell/init.nu b/nushell/init.nu index aaefd66..d44037b 100644 --- a/nushell/init.nu +++ b/nushell/init.nu @@ -187,7 +187,12 @@ def ghrepoclone [ let directory = ([$nu.home-dir "Documents/dev" $target] | path join) if ($directory | path exists) { - print $"Directory ($directory) already exists" + if ([$directory ".git"] | path join | path exists) { + print $"Directory ($directory) already exists and is a git repository" + } else { + print $"Directory ($directory) already exists but is not a git repository" + gh repo clone $"($org)/($repo)" $directory + } } else { gh repo clone $"($parsed.org)/($parsed.repo)" $directory }