diff options
author | Kai Moschcau <kai.moschcau@blecon.de> | 2024-10-29 15:36:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-29 07:36:58 -0700 |
commit | 4c7f5032af6baca61764cde5122765b2ec684e4a (patch) | |
tree | 8f1b26b942fed2a1217c4c4d16a480570cc5a709 /runtime/lua/vim/_meta/options.lua | |
parent | 2cd6abf0d7b1fb0ff71c2cb75913170025f8c915 (diff) | |
download | rneovim-4c7f5032af6baca61764cde5122765b2ec684e4a.tar.gz rneovim-4c7f5032af6baca61764cde5122765b2ec684e4a.tar.bz2 rneovim-4c7f5032af6baca61764cde5122765b2ec684e4a.zip |
docs(options): shell-powershell #30969
`-NonInteractive` at least somewhat hints to pwsh/powershell, that shell
sessions created from :! are not interactive, though even that is not
foolproof, because powershell is weird.
`$PSStyle.OutputRendering='plaintext'` causes pwsh/powershell
to omit ANSI escape sequences in its output.
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
-rw-r--r-- | runtime/lua/vim/_meta/options.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index 710f82bf21..5e5b6b5ed1 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -5434,7 +5434,7 @@ vim.go.sdf = vim.go.shadafile --- --- ```vim --- let &shell = executable('pwsh') ? 'pwsh' : 'powershell' ---- let &shellcmdflag = '-NoLogo -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.UTF8Encoding]::new();$PSDefaultParameterValues[''Out-File:Encoding'']=''utf8'';Remove-Alias -Force -ErrorAction SilentlyContinue tee;' +--- let &shellcmdflag = '-NoLogo -NonInteractive -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.UTF8Encoding]::new();$PSDefaultParameterValues[''Out-File:Encoding'']=''utf8'';$PSStyle.OutputRendering=''plaintext'';Remove-Alias -Force -ErrorAction SilentlyContinue tee;' --- let &shellredir = '2>&1 | %%{ "$_" } | Out-File %s; exit $LastExitCode' --- let &shellpipe = '2>&1 | %%{ "$_" } | tee %s; exit $LastExitCode' --- set shellquote= shellxquote= |