doc: powershell is 'pwsh' on non-Windows OS

This commit is contained in:
Jan Edmund Lazo 2019-12-31 22:29:40 -05:00 committed by Justin M. Keyes
parent b92399d008
commit 1c3afe4e25
1 changed files with 3 additions and 2 deletions

View File

@ -5168,8 +5168,9 @@ A jump table for the options with a short description can be found at |Q_op|.
Note that such processing is done after |:set| did its own round of
unescaping, so to keep yourself sane use |:let-&| like shown above.
*shell-powershell*
To use powershell (on Windows): >
set shell=powershell shellquote= shellpipe=\| shellxquote=
To use powershell: >
let &shell = has('win32') ? 'powershell' : 'pwsh'
set shellquote= shellpipe=\| shellxquote=
set shellcmdflag=-NoLogo\ -NoProfile\ -ExecutionPolicy\ RemoteSigned\ -Command
set shellredir=\|\ Out-File\ -Encoding\ UTF8