Skip to content

Commit 8e49a04

Browse files
committed
fix(man): Use cat as man pager
1 parent 7f0a22b commit 8e49a04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: server/src/util/sh.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const WORDS_WITHOUT_DOCUMENTATION = new Set([
5353
])
5454

5555
/**
56-
* Get documentation for the given word by usingZZ help and man.
56+
* Get documentation for the given word by using help and man.
5757
*/
5858
export async function getShellDocumentationWithoutCache({
5959
word,
@@ -73,7 +73,7 @@ export async function getShellDocumentationWithoutCache({
7373
// We have experimented with setting MANWIDTH to different values for reformatting.
7474
// The default line width of the terminal works fine for hover, but could be better
7575
// for completions.
76-
{ type: 'man', command: `man ${word} | col -bx` },
76+
{ type: 'man', command: `man -P cat ${word} | col -bx` },
7777
]
7878

7979
for (const { type, command } of DOCUMENTATION_COMMANDS) {

0 commit comments

Comments
 (0)