Skip to content

Commit

Permalink
More review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymoteusz Jankowski committed Dec 11, 2019
1 parent 53e4c8d commit 3441f79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions static/docs/command-reference/pipeline/show.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ instead of stages.
## Paging the output

This command's output is automatically piped to
[`less`](<https://en.wikipedia.org/wiki/Less_(Unix)>), if available in the
[Less](<https://en.wikipedia.org/wiki/Less_(Unix)>), if available in the
terminal. (The exact command used is `less --chop-long-lines --clear-screen`.)
If less is not available (e.g. on Windows), the output is simply printed out.
If `less` is not available (e.g. on Windows), the output is simply printed out.

> It's also possible to
> [enable Less paging on Windows](/doc/user-guide/running-dvc-on-windows#enabling-paging-with-less).
Expand Down
16 changes: 7 additions & 9 deletions static/docs/user-guide/running-dvc-on-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,15 @@ is the resource for reference.

## Enabling paging with `less`

By default, DVC tries to use
[`Less`](<https://en.wikipedia.org/wiki/Less_(Unix)>) as pager for the output of
`dvc pipeline show`. Windows doesn't have the less command available however.
Fortunately, there is a easy way of installing `less` via
[Chocolatey](https://chocolatey.org/) (please install the tool first):
By default, DVC tries to use [Less](<https://en.wikipedia.org/wiki/Less_(Unix)>)
as pager for the output of `dvc pipeline show`. Windows doesn't have the less
command available however. Fortunately, there is a easy way of installing `less`
via [Chocolatey](https://chocolatey.org/) (please install the tool first):

```dvc
$ choco install less
```

If you do not want to use [Chocolatey](https://chocolatey.org/) for some reason,
you can still provide `less` by your own way. However, you must make `less` to
be runnable from `cmd`/`Powershell`. This usually means to add the `less`
installation directory to the `PATH` environment variable.
`less` can be installed in other ways, just make sure it's available in
`cmd`/Powershell, where you run dvc. (This usually means adding the directory
where `less` is installed to the `PATH` environment variable.)

0 comments on commit 3441f79

Please sign in to comment.