dotfiles/.config/fish/functions/_gh.fish

8 lines
322 B
Fish

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