首先把默认终端应用程序设置为 Windows Terminal 然后在 Windows Terminal 的配置中更改字体(GUI/JSON) 可以自行挑选 Powerline 字体(一般都带有 for Powerline) 或者是 自行安装的更纱黑体 修改完字体后字体缺失的问题就解决了 ✨卸载教程 因为加载有些慢,折腾完后决定卸载Oh My Posh Uninstall-Moduleoh-my-posh...
1. 安装powershell 我相信大家都有,除非你自己卸载了,这个可以去微软应用商店去下 2.安装oh-my-posh winget install JanDeDobbeleer.OhMyPosh -s winget 【此处踩坑】winget比较慢,一般是没有换源导致的 一般而言,先查看winget源 winget source list winget源 一般而言,有两个,一个是微软的cdn的cache(这里...
oh-my-posh init pwsh | Invoke-Expression 如果终端变成了下图就说明安装成功: 这是oh-my-posh3的默认主题 2. 配置整体运行文件 notepad $profile 将以下文本写入其中: oh-my-posh init pwsh --config <主题路径(json文件)> | Invoke-Expression Import-Module posh-git Import-Module Terminal-Icons Set-PS...
三.Windows Terminal使用Nerd Fonts字体 四.配置Shell终端以使用oh-my-posh 五.配置cmd终端使用oh-my-posh 六.Git Bash配置oh-my-posh 一. 什么是oh-my-posh? Oh My Posh 是一个适用于任何 shell 的自定义提示引擎,能够使用函数或变量调整提示字符串。 官网:Home | Oh My Posh 官网有详细的配置说明和主题...
Windows 终端美化笔记 一、安装必要工具 Windows + X 然后打开powershell Oh My Posh # 使用 winget 安装 winget install JanDeDobbeleer.OhMyPosh -s winget # 安装字体 oh-my-posh font i
1、oh-my-posh已经不再支持PowerShell module,我们可以在官网看见这个标签页已经入土了 进棺材了哈哈好似喵 2、配置完了以后不显示conda环境名称: 这个主要是由于配置问题,查看你的.opm.json文件,找到segments中type为python的那个部分,我们可以看到几个常见的元凶,让你无法看到你的conda环境,即使你已经配好了: ...
Set-PoshPrompt-Theme JanDeDobbeleer 保存退出。 第一条命令表示导入posh-git 第二条命令表示导入oh-my-posh 第三条命令表示设置主题为JanDeDobbeleer 每次打开Windows Terminal中的Power shell都会执行脚本文件中的三条命令。 注意: 此处的第三行是oh-my-posh2与3的不同之一,在oh-my-posh2里的是: ...
windows电脑上的终端工具Window terminal大家应该都不陌生,这里介绍一款美化工具,从此告别windows terminal的黑与白。 2、Oh-My-Posh Oh My Posh 是一个命令行提示工具,通常用于美化和自定义终端提示符。它允许用户创建自定义的终端提示符,包括颜色、图标、文本样式等,以提高终端的可视化吸引力和功能性。Oh My Posh ...
Install-Moduleposh-git-ScopeCurrentUser Install-Moduleoh-my-posh-ScopeCurrentUser # 不想要了可以卸载 #Uninstall-Module posh-git #Uninstall-Module oh-my-posh 1. 2. 3. 4. 5. 6. 7. 8. 配置profile文件 if(!(Test-Path-Path$PROFILE)){New-Item-TypeFile-Path$PROFILE-Force ...
安装oh-my-posh oh-my-posh应该是对标 oh-my-zsh 的工具,其安装步骤如下: 使用系统管理员打开 Windows Terminal 执行安装命令:winget install JanDeDobbeleer.OhMyPosh -s winget 使用系统管理员重新打开 Windows Terminal,使得 oh-my-posh 命令生效