我们可以使用Oh My Posh自定义PowerShell或适用于Linux的Windows子系统 (WSL) 的命令提示符。Oh My Posh提供完全自定义的命令提示符体验的主题功能,提供 Git 状态颜色编码和提示符。如下图: 安装Oh My Posh for PowerShell 如果要自定义 PowerShell 提示符,可使用winget安装Oh My Posh。 在powershell终端中输入以...
| The term 'oh-my-posh' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the|name, orifa path was included, verify that the path is correct and try again 1. 2. 3. 4. 5. 6. 解决这个问题很简单:将oh-my-posh.exe添加到...
oh-my-posh3比较影响性能,如果你的CPU不是很好,不是很推荐使用。 准备 下载Nerd字体: Nerd Fonts - Iconic font aggregator, glyphs/icons collection, & fonts patcherwww.nerdfonts.com/font-downloads 我使用的是Caskaydia Cove Nerd Font windows terminal终端配置:改字体(必须是nerd系列字体)+改背景+改...
我们可以使用Oh My Posh自定义PowerShell或适用于Linux的Windows子系统 (WSL) 的命令提示符。Oh My Posh提供完全自定义的命令提示符体验的主题功能,提供Git状态颜色编码和提示符。如下图: 安装Oh My Posh for PowerShell 如果要自定义 PowerShell 提示符,可使用winget安装Oh My Posh。 在powershell终端中输入以下...
三.Windows Terminal使用Nerd Fonts字体 四.配置Shell终端以使用oh-my-posh 五.配置cmd终端使用oh-my-posh 六.Git Bash配置oh-my-posh 一. 什么是oh-my-posh? Oh My Posh 是一个适用于任何 shell 的自定义提示引擎,能够使用函数或变量调整提示字符串。
oh-my-posh 的不少主题都是依赖于该字体,否则部分 icon 会乱码,建议安装。 Nerd Fonts 官网 博主安装的是这套字体,也是官方推荐的字体:Meslo LGM NF。 windows terminal 配置 启动shell 设置为 powershell 7 以管理员权限启动 shell 在windows terminal 的设置中,打开JSON文件: ...
如果你的Terminal是在打开的状态,那么保存更改的内容后应该能立即在Terminal中看到效果。 4.安装oh-my-posh: 打开微软商店搜索oh-my-posh安装或浏览器访问ms-windows-store://pdp/?productid=XP8K0HKJFRXGCK或者使用winget: winget installJanDeDobbeleer.OhMyPosh-s winget ...
windows电脑上的终端工具Window terminal大家应该都不陌生,这里介绍一款美化工具,从此告别windows terminal的黑与白。 2、Oh-My-Posh Oh My Posh 是一个命令行提示工具,通常用于美化和自定义终端提示符。它允许用户创建自定义的终端提示符,包括颜色、图标、文本样式等,以提高终端的可视化吸引力和功能性。Oh My Posh ...
环境:WindowsPowershell(非 PowerShell Core) 一、下载 1、 1-1 打开https://www.powershellgallery.com/, 1-2 搜索oh-my-posh,点击Manual Download,找到2.0.496版,点击下载。 1-3 搜索下载posh-git【如果这俩下载不了,评论区有备用地址】 下载 ...
windows电脑上的终端工具Window terminal大家应该都不陌生,这里介绍一款美化工具,从此告别windows terminal的黑与白。 2、Oh-My-Posh Oh My Posh 是一个命令行提示工具,通常用于美化和自定义终端提示符。它允许用户创建自定义的终端提示符,包括颜色、图标、文本样式等,以提高终端的可视化吸引力和功能性。Oh My Posh ...