Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Format Windows console examples with dosconor powershell #957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion 5 docs/notes/styleguide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ Command line examples:
$ run command --help
$ ls ..

Be sure to include the ``$`` prefix before each line.
Be sure to include the ``$`` prefix before each line for Unix console examples.

For Windows console examples, use ``doscon`` or ``powershell`` instead of
``console``, and omit the ``$`` prefix.

Python interpreter examples:

Expand Down
8 changes: 4 additions & 4 deletions 8 docs/starting/install/win.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ tedious, so add the directories for your default Python version to the :envvar:`
Assuming that your Python installation is in :file:`C:\\Python27\\`, add this to your
:envvar:`PATH`:

.. code-block:: console
.. code-block:: doscon

C:\Python27\;C:\Python27\Scripts\

You can do this easily by running the following in ``powershell``:

.. code-block:: console
.. code-block:: powershell

[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27\;C:\Python27\Scripts\", "User")

Expand Down Expand Up @@ -68,9 +68,9 @@ pip by default.

To see if pip is installed, open a command prompt and run

.. code-block:: console
.. code-block:: doscon

$ command -v pip
command -v pip

To install pip, `follow the official pip installation guide <https://pip.pypa.io/en/latest/installing/>`_ - this will automatically install the latest version of setuptools.

Expand Down
6 changes: 4 additions & 2 deletions 6 docs/starting/install3/win.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ It's a community system packager manager for Windows 7+. (It's very much like Ho

Once done, installing Python 3 is very simple, because Chocolatey pushes Python 3 as the default.

.. code-block:: console
.. code-block:: doscon

choco install python

Expand All @@ -29,7 +29,9 @@ which let you download, install and uninstall any compliant Python software
product with a single command. It also enables you to add this network installation
capability to your own Python software with very little work.

All supported versions of Python 3 include pip, so just make sure it's up to date::
All supported versions of Python 3 include pip, so just make sure it's up to date:

.. code-block:: doscon

python -m pip install -U pip

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.