如何安装 Microsoft Windows 终端

xpt*_*xpt 10 windows powershell chocolatey windows-terminal

好吧,这应该是一个相当简单的问题,但是如果没有所有可能性,恐怕它正在成为一个加载一个,只是为了安装Microsoft Windows Terminal

Microsoft Windows终端

是一个新的、现代的、快速的、高效的、强大的和高效的终端应用程序,适用于命令行工具和 shell(如命令提示符、PowerShell 和 WSL)的用户。其主要功能包括多个选项卡、Unicode 和 UTF-8 字符支持、GPU 加速文本渲染引擎以及自定义主题、样式和配置。

它是一个开源项目,可在https://github.com/microsoft/terminal 获得

在此处输入图片说明

  • 尝试使用 安装choco install microsoft-windows-terminal,我会得到:

    ERROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict validation.
    
    Windows cannot install package Microsoft.WindowsTerminal_0.11.1121.0_x64__8wekyb3d8bbwe because this package depends on a framework that could not be found. Provide the framework "Microsoft.VCLibs.140.00" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 14.0.27810.0, along with this package to install. The frameworks with name "Microsoft.VCLibs.140.00" currently installed are: {Microsoft.VCLibs.140
    Windows cannot install package Microsoft.WindowsTerminal_0.11.1121.0_x64__8wekyb3d8bbwe because this package depends on a framework that could not be found. Provide the framework "Microsoft.VCLibs.140.00" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 14.0.27810.0, along with this package to install. The frameworks with name "Microsoft.VCLibs.140.00" currently installed are: {Microsoft.VCLibs.140.00_14.0.26706.0_x64__8wekyb3d8bbwe Microsoft.VCLibs.140.00_14.0.26706.0_x86__8wekyb3d8bbwe}
    
    Run Code Online (Sandbox Code Playgroud)

虽然我已经用尽了所有的搜索,并且确信我有依赖的东西:

PS > Get-AppxPackage -allusers *Microsoft.VCLibs.140.00* | Select Name, PackageFullName

Name                               PackageFullName
----                               ---------------
Microsoft.VCLibs.140.00.UWPDesktop Microsoft.VCLibs.140.00.UWPDesktop_14.0.26905.0_x64__8wekyb3d8bbwe
Microsoft.VCLibs.140.00            Microsoft.VCLibs.140.00_14.0.26706.0_x64__8wekyb3d8bbwe
Microsoft.VCLibs.140.00            Microsoft.VCLibs.140.00_14.0.26706.0_x86__8wekyb3d8bbwe
Microsoft.VCLibs.140.00.UWPDesktop Microsoft.VCLibs.140.00.UWPDesktop_14.0.27810.0_x64__8wekyb3d8bbwe
Run Code Online (Sandbox Code Playgroud)

那么,再次提出一个简单的问题,如何安装 Microsoft Windows Terminal?谢谢。

js2*_*010 10

直接从 Microsoft Store 安装它也不适合我。在 Windows 10 1909 中,我做到了(它是 msix)。请注意,appx 命令在 powershell 7.1中消失了

Add-AppxPackage Microsoft.WindowsTerminal_0.11.1191.0_8wekyb3d8bbwe.msixbundle
Run Code Online (Sandbox Code Playgroud)

它安装正常。

get-appxpackage microsoft.windowsterminal


Name              : Microsoft.WindowsTerminal
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        :
Version           : 0.11.1191.0
PackageFullName   : Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe
IsFramework       : False
PackageFamilyName : Microsoft.WindowsTerminal_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
Dependencies      : {Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe,
                    Microsoft.VCLibs.140.00.UWPDesktop_14.0.27810.0_x64__8wekyb3d8bbwe}
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok
Run Code Online (Sandbox Code Playgroud)

Alt-down arrow-settings 获取默认设置 json。