diff --git a/.config/fish/functions/gh.fish b/.config/fish/functions/gh.fish index 81f25040..36c3d5ec 100644 --- a/.config/fish/functions/gh.fish +++ b/.config/fish/functions/gh.fish @@ -1,3 +1,8 @@ -function gh --description "Create a new " - +function gh --description "Create a new clean repo if arg is public or private" --wraps gh + if test $argv[1] = public; or test $argv[1] = private + # echo Creating new $argv[1] repo $argv[2] + gh repo create $argv[2] --disable-issues --disable-wiki --$argv[1] + else + command gh $argv + end end