首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏叹世界

    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编辑于 2022-01-12
  • 来自专栏hotarugaliの技术分享

    Windows10配置PowerShell

    个人推荐 Windows Terminal + PowerShell + oh-my-posh + posh-git。 2. 2.3 oh-my-posh & posh-git 有了 WT + PowerShell 后,我们还需要针对 PowerShell 的插件框架,类似于 Zsh 的 oh-my-zsh 插件框架。 oh-my-posh 为 PowerShell 提供了各种美化主题,而 posh-git 则为 PowerShell 则为 PowerShell 提供了 Git 状态显示和命令补全等功能。 然后在 WT 中新建打开 PowerShell 7,安装 oh-my-posh 和 posh-git 模块: Install-Module posh-git -Scope CurrentUser # posh-git /posh-git 3.

    5.3K20编辑于 2022-09-27
  • 来自专栏折影轻梦

    美化你的终端

    安装完成 安装 Terminus https://eugeny.github.io/terminus/ 安装 oh-my-posh 与 posh-git posh-git:此模块用于将 git 集成于 PowerShell 中 oh-my-posh:本次美化主角,带色的箭头标签 Set-ExecutionPolicy Bypass Install-Module posh-git -Scope CurrentUser 启用 oh-my-posh 与 posh-git Import-Module posh-git Import-Module oh-my-posh 设置主题 Set-Theme Agnoster 可选列表

    1.1K20发布于 2021-08-11
  • 来自专栏前端资源

    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.7K41编辑于 2023-08-25
  • 来自专栏yiyun 的专栏

    PowerShell 美化配置 | 笔记

    安装 posh-git 模块 # posh-git 将 git 信息添加到提示中 Install-Module posh-git -Scope CurrentUser 4. Import-Module posh-git Import-Module oh-my-posh Set-PoshPrompt -Theme Paradox 重启 Windows Terminal, 第一次打开后较慢

    1.2K20编辑于 2022-04-01
  • 来自专栏前端开发

    windows中使用Oh My Posh美化你的终端PowerShell或CMD

    oh-my-posh.exe init pwsh --config $env:POSH_THEMES_PATH\montys.omp.json | Invoke-Expression Import-Module posh-git # 引入 posh-git Import-Module PSReadLine # 历史命令联想 # 设置预测文本来源为历史记录 Set-PSReadLineOption -PredictionSource oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/jandedobbeleer.omp.json" | Invoke-Expression 安装Git扩展 posh-git 安装 Install-Module -Name posh-git -Scope CurrentUser 安装完成后,重启 PowerShell 并输入以下命令启用 posh-git:Import-Module posh-git 不生效的话可以在前面的配置文件 Microsoft.PowerShell_profile.ps1中追加以下内容 Import-Module posh-git # 引入 posh-git

    8.3K10编辑于 2024-08-06
  • 来自专栏数值分析与有限元编程

    配置高颜值的Windows Terminal

    如需要支持git插件,输入 Install-Module posh-git ,这要看个人需求了。 notepad.exe $Profile 打开一个空文件,如图所示 输入以下内容: #-------- Import Modules BEGIN --------------------- # 引入 posh-git ,可选项,看个人情况 Import-Module posh-git # 引入 oh-my-posh Import-Module oh-my-posh # 设置 PowerShell 主题 Set-PoshPrompt

    1.9K42发布于 2021-08-20
  • 来自专栏码农小胖哥的码农生涯

    手把手教你美化微软的新终端Windows Terminal

    安装美化主题 打开PowerShell安装Oh-My-Posh[1]和Posh-Git[2] Set-ExecutionPolicy Bypass Install-Module posh-git -Scope CurrentUser Install-Module oh-my-posh -Scope CurrentUser Posh-Git将Git状态信息添加到提示,并为Git命令、参数、远程和分支名称添加 New-Item -Type File -Path $PROFILE -Force } notepad $PROFILE 会打开如下记事本,将下面的代码配置到记事本中保存: Import-Module posh-git 文中引用 [1] Oh-My-Posh: https://github.com/JanDeDobbeleer/oh-my-posh [2] Posh-Git: https://github.com/dahlbyk /posh-git [3] Windows Terminal Themes: https://atomcorp.github.io/themes [4] Windows Terminal官方文档: https

    7.3K10发布于 2020-07-02
  • 来自专栏漫漫全栈路

    Powershell 美化和 Win 包管理工具

    借助刚才安装的 Chocolatey 来安装 Conemu choco install ConEmu 安装美化插件 安装 posh-git 和 oh-my-posh: Install-Module posh-git { New-Item -Type File -Path $PROFILE -Force } notepad $PROFILE 将以下行附加到PowerShell配置文件: Import-Module posh-git

    2K10发布于 2019-12-04
  • 来自专栏乐百川的学习频道

    配置酷酷的Windows Powershell

    因为posh-git插件依赖于git,如果你没安装也不需要Git的话,可以不输入第一条命令。 Install-Module posh-git Install-Module oh-my-posh 安装完成之后,输入下面的命令导入模块,即可在终端中看到ohmyposh的效果了。 Import-Module posh-git Import-Module oh-my-posh Set-Theme PowerLine 是不是感觉Powershell的美观程度一下子上去了。 Force '~\Documents\PowerShell' Set-Content '~\Documents\PowerShell\Profile.ps1' -Value @" Import-Module posh-git

    3K30发布于 2020-02-23
  • 来自专栏Naraku的专栏

    Windows Terminal安装及美化

    再将执行策略设回前面查看策略时的值(更安全) > choco # 测试是否安装成功 使用choco安装ConEmu > choco install ConEmu 安装oh-my-posh和posh-git > Install-Module posh-git -Scope CurrentUser > Install-Module oh-my-posh -Scope CurrentUser > install-module posh-git 打开PowerShell配置文件,如果不知道文件路径可使用$PROFILE查看,打开后插入以下语句 Import-Module posh-git Import-Module oh-my-posh 其它 myTheme主题配置 #requires -Version 2 -Modules posh-git function Write-Theme { param( [bool

    1.5K40发布于 2021-07-29
  • 来自专栏szhshp 的第四边境中转站

    尝试 Windows Terminal + z.lua

    Powershell 这一段是设置 Powershell, 因为最终我们是通过 Windows Terminal 启动 Powershell 插件安装 使用 PowerShell, 执行下面的命令分别安装 Posh-Git 和 Oh-My-Posh: # PSReadline - 实现类似 ZSH 那样的命令补全 Install-Module -Name PSReadLine -Scope CurrentUser # posh-git - Git 插件 Install-Module posh-git -Scope CurrentUser # oh-my-posh - 主要用于 Powershell 美化 Install-Module 开启的时候都会自动执行 添加这一段东西: # ========================= Import Modules ======================= Import-Module posh-git

    1.7K20编辑于 2022-09-21
  • 来自专栏Akilarの糖果屋

    Win10:PowerShell美化教程

    /install.ps1 可能遇到的 bug执行以上代码过程中可能遇到的 bug 安装 posh-git 和 oh-my-posh 依旧是Win+X 后按A 打开 powershell 管理员模式。 输入 Install-Module posh-git -Scope CurrentUser Install-Module oh-my-posh -Scope CurrentUser # 安装完成后,需要修改主题配置的脚本文件 Import-Module posh-git Import-Module oh-my-posh Set-Theme Agnoster 若下载过慢,可以使用方案二 设置 ConEmu ConEmu 的中文支持相当不错

    3.8K40发布于 2021-06-11
  • 来自专栏码农小胖哥的码农生涯

    Windows 命令行终端 PowerShell 美化计划

    执行下面的命令: Install-Module posh-git -Scope CurrentUser 可能需要等待 1 分钟的时间,「不要点回车」。 文件的路径为: C:\Users\dax\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 打开它并写入: Import-Module posh-git

    2.1K20发布于 2020-04-01
  • 来自专栏杂七杂八

    Windows Terminal终端美化

    'https://chocolatey.org/install.ps1')) 安装Oh-my-posh # 下面命令挨个执行 choco install ConEmu Install-Module posh-git Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force } 打开生成的文件,加入下面代码 Import-Module posh-git

    4.2K10发布于 2020-02-18
  • 来自专栏walterlv - 吕毅的博客

    将美化进行到底,把 PowerShell 做成 oh-my-zsh 的样子

    然后,运行命令以安装 posh-git,这是 oh-my-posh 的依赖。 Install-Module posh-git -Scope CurrentUser 如果此前没有安装 NuGet 提供程序,则此时会提示安装 NuGet;如果此前没有开启执行任意脚本,此处也会提示执行脚本

    4.8K10发布于 2018-09-18
  • 来自专栏无道编程

    Windows Terminal 配置oh-my-posh主题

    Install-Module posh-git -Scope CurrentUser Install-Module oh-my-posh -Scope CurrentUser ? $PROFILE )) { New-Item -Type File -Path $PROFILE -Force } notepad $PROFILE 在打开的文件中添加: Import-Module posh-git

    8.3K00发布于 2019-11-13
  • 来自专栏禅境花园

    Windows Terminal 终极美化

    Microsoft.PowerShell_profile.ps1 ,把和 oh-my-posh 的配置干掉,替换成新的: # old # Import-Module DirColors # Import-Module posh-git Install-Module git-aliases -AllowClobber -Scope CurrentUser Install-Module posh-git -Scope CurrentUser Sorin , tehrob 可以使用 Set-PoshPrompt -Theme [主题名] 配置主题 加载模块和设置主题 Import-Module DirColors Import-Module posh-git notepad $PROFILE) 在打开的 Microsoft.PowerShell_profile.ps1 , 保存以下配置 Import-Module DirColors Import-Module posh-git

    4.9K20编辑于 2022-10-25
  • 来自专栏EmoryHuang's Blog

    打造精致的 Windows 终端

    Bypass 安装 oh my posh 打开 Windows Terminal,依次运行 Install-Module DirColors -Scope CurrentUser Install-Module posh-git Users\用户名\Documents\WindowsPowerShell\,在这个文件夹下新建Microsoft.PowerShell_profile.ps1,并写入如下代码: Import-Module posh-git

    2K20编辑于 2022-09-26
  • 来自专栏YO大数据

    还在使用Window原始的CMD界面?教你一招进行界面完美优化

    在window自带的Microsoft Strore商城中,搜索windows terminal就可以直接进行下载 3.安装PowerShell工具 posh-git是继承了Git的PowerShell 这两个工具可以让我们更好的对主题进行配置与优化 使用PowerShell安装工具命令如下 Install-Module posh-git -Scope CurrentUser Install-Module

    3K30发布于 2021-11-22
领券