AutoYADM commit: 2025-06-30 15:17:38
This commit is contained in:
parent
5468c94f67
commit
623f1c5dee
1 changed files with 14 additions and 0 deletions
14
.config/fish/functions/hut_init.fish
Normal file
14
.config/fish/functions/hut_init.fish
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue