首页
学习
活动
专区
圈层
工具
发布

Windows-Terminal 美化以及通过 OhMyPosh 美化 PowerShell

v2.1.0/Meslo.zip 下载后解压,进入 ttf 文件夹,选中下图的 ttf 文件,分别是常规、粗体、斜体、粗斜体,右键进行安装 安装完后可以在字体设置中预览 在 PowerShell 中安装 Posh-Git...和 Oh-My-Posh 在执行这一步前,先确保你安装了 git 在这一步中,我们会安装 Posh-Git 和 Oh-My-Posh: 在 PoweShell 窗口中,用 Terminal 打开 PowerShell...,使用管理员打开 Terminal 或 PowerShell 执行以下命令 Install-Module posh-git Install-Module oh-my-posh 如果出现不受信任的存储库,...更新完之后我们要卸载旧版本的模块 先获取模块的版本号,需要记住旧版本的版本号 Get-Module -ListAvailable 卸载旧版本的模块 Uninstall-Module -Name "posh-git...和 oh-my-posh Import-Module posh-git Import-Module oh-my-posh 然后我们输入以下命令来预览效果 Get-PoshThemes 选择你喜欢的主题

4K30
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    Powershell增强:命令补全、主题美化及Git扩展保姆级教程

    本文将介绍如何使用 PSReadLine 、oh-my-posh 和 posh-git 这三个模块来为 PowerShell 带来类似于 Mac 上的 oh my zsh 的体验,包括语法高亮、错误提示...Get-InstalledModule 安装 PSReadLine PSReadLine 提供了语法高亮、错误提示、多行编辑、键绑定、历史记录搜索等功能: Install-Module PSReadLine 安装 posh-git...posh-git 可以在 PowerShell 中显示 Git 状态信息,并提供 Git 命令的自动补全: Install-Module posh-git 安装 Oh My Posh oh-my-posh...Import-Module posh-git # 引入 oh-my-posh Import-Module oh-my-posh # 设置 PowerShell 主题 # Set-PoshPrompt...总结 本文介绍了如何使用 PSReadLine 、oh-my-posh 和 posh-git 这三个模块来为 PowerShell 打造个性化的命令行体验,包括语法高亮、错误提示、多行编辑、键盘绑定、自动补全

    14.3K41
    领券