oh-my-fish/pkg/omf/util/omf_util_fork_repo.fish
2015-08-27 00:20:13 +09:00

4 lines
165 B
Fish

function omf_util_fork_repo -a user repo
curl -u "$user" --fail --silent https://api.github.com/repos/$repo/forks \
-d "{\"user\":\"$user\"}" >/dev/null ^&1
end