Oh My Posh 是一款可深度定制的全平台终端工具,支持 Windows、GNU/Linux(WSL)、macOS 三个系统上的 PowerShell、bash、zsh 等终端
3. 继续瞎折腾: 自定义一个oh-my-posh主题 3.1 特殊字符代替 使用YaHei Consolas Hybrid等非powerline字体,遇到了缺失字符的问题,那就干脆找出来oh-my-posh究竟用了那些特殊字符? # 显示当前主题设置$themesettings# 显示当前主题用到的字符$themesettings.promptsymbols$themesettings.gitsymbols# 显示当前主题用到...
Import-Module posh-git # 引入 posh-git Import-Module oh-my-posh # 引入 oh-my-posh# 设置主题 oh-my-posh init pwsh --config "C:\Users\32651\AppData\Local\Programs\oh-my-posh\themes\M365Princess.omp.json" | Invoke-Expression # Set-PSReadLineOption -PredictionSource History # 设置预测文本...
在PoweShell窗口中,用 Terminal 打开 PowerShell 也行,执行以下命令 Install-Moduleposh-git-ScopeCurrentUserInstall-Moduleoh-my-posh-ScopeCurrentUser 如果想为全部用户安装,使用管理员打开 Terminal 或 PowerShell 执行以下命令 Install-Moduleposh-gitInstall-Moduleoh-my-posh 如果出现不受信任的存储库,就选择A 如...
首先,先贴上 oh-my-posh 的官方文档 oh-my-posh 使用管理员身份打开 安装好的 Windows Terminal 安装oh-my-posh 和 posh-git 两个模块,遇到询问选 Y 或者 A(全是) 确认即可。 如果下载速度慢的话,考虑使用梯子📎PigchaClient_green.zip。 # 绕过 powershell 执行策略,使其可以顺利执行脚本 Set-Executio...
https://github.com/JanDeDobbeleer/oh-my-posh.git 主题风格查看 Themes | Oh My Posh 配置使用主题 Customize | Oh My Posh 1、配置应用主题 oh-my-posh init pwsh --config 'C:/Users/Posh/jandedobbeleer.omp.json' | Invoke-Expression [!IMPORTANT] 注意把 'C:/Users/Posh/jandedobbeleer.omp....
使用管理员身份打开Windows PwerShell,依次执行以下命令,安装oh-my-posh和posh-git。 # 1. 绕过power shell执行策略,使其可以执行脚本文件 Set-ExecutionPolicy Bypass # 2. oh-my-posh提供主题 Install-Module oh-my-posh -Scope CurrentUser # 3. posh-git将git信息添加到提示中 ...
Oh My Posh是一款终端个性化工具,支持Windows、Linux(WSL)、macOS 系统上的 PowerShell、bash、zsh 等终端,可以配置不同主题达到个性化的效果。 今天上班忘记拿吃饭的家伙了 => 电脑,回家拿已来不及。还好公司有备用电脑,但是看惯了 Mac 的终端, Windows 系统的终端实在是太丑了,于是想到了终端个性化工具:oh-my-...
1-2 搜索oh-my-posh,点击Manual Download,找到2.0.496版,点击下载。 1-3 搜索下载posh-git【如果这俩下载不了,评论区有备用地址】 下载 2、打开https://github.com/microsoft/cascadia-code/releases,下载Cascadia连字字体; 也可以在评论区拿 3、打开https://git-scm.com/downloads,下载git(可以不下载,只是...
Import-Module posh-git# 引入 posh-gitImport-Module oh-my-posh# 引入 oh-my-poshImport-Module -Name Terminal-Icons# 引入文件图标库Import-Module PSReadLine# 历史命令联想# 设置主题Set-PoshPrompt -Theme D:\software\oh-my-posh\themes\kushal.omp.json# Set-PSReadLineOption -PredictionSource History ...