From 623f1c5deebe5d652c330aad75c46b248a446d21 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Mon, 30 Jun 2025 15:17:38 -0400 Subject: [PATCH] AutoYADM commit: 2025-06-30 15:17:38 --- .config/fish/functions/hut_init.fish | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .config/fish/functions/hut_init.fish diff --git a/.config/fish/functions/hut_init.fish b/.config/fish/functions/hut_init.fish new file mode 100644 index 00000000..284bbfbe --- /dev/null +++ b/.config/fish/functions/hut_init.fish @@ -0,0 +1,14 @@ +function hut_init --argument-names vis --argument-names repo --argument-names desc + if test (count $argv) != 3 + echo Require three args: visibility repo description + exit 1 + end + if not test -d "$repo" && not test "$(path basename $(path resolve .))" = "$repo" + mkdir "$repo" + cd "$repo" + git init + else if not test -d "$repo" && test "$(path basename $(path resolve.))" = "$repo" + git init + end + hut git create "$repo" -v "$vis" -d "$desc" +end