Skip to content

Conversation

@elboulangero
Copy link
Contributor

No description provided.

.. code-block:: sh
git clone --recursive https://github.com/getpelican/pelican-themes ~/pelican-themes
git clone --jobs 8 --recursive https://github.com/getpelican/pelican-themes ~/pelican-themes

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole document has a bit of a "POSIX-or-die" slant that might not be the most helpful, but in keeping with that motif, wouldn't it be more adaptive to set --jobs "$(nproc)" here rather than supply a fixed value when we have no a priori knowledge about their environment?

As far as the POSIX-or-die part, I think that can be resolved pretty well by prepending bash -c to what's already there (since we can reasonably assume that however someone got Git installed on Windows it includes a Bash interpreter in PATH) and replacing ~ with $HOME in the target path argument (PowerShell Core aliases that to $Env:UserProfile I'm pretty sure, no idea about CMD.exe though), but my familiarly with both the Windows Command Interpreter and Windows PowerShell makes me wish someone with more experience in that domain would spot check my thinking on that part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants