Oh My Posh 主题。 GitHub主题下载 https://github.com/JanDeDobbeleer/oh-my-posh.git 主题风格查看 Themes | Oh My Posh 配置使用主题 Customize | Oh My Posh 1、配置应用主题 oh-my-poshinit pwsh--config'C:/Users/Posh/jandedobbeleer.omp.json'|Invoke-Expression ...
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\hul10.omp.json" | Invoke-Expression 如要选择其他主题,键入以下命令浏览查看 get-PoshThemes 四、安装插件 以管理员运行,安装PSReadLine 提供了语法高亮、错误提示、多行编辑、键绑定、历史记录搜索等功能 ...
forfilein~/.poshthemes/*.omp.json;doecho"$file\n"; oh-my-posh --config$file--shell universal;echo"\n";done; ~/.bashrc使用nano ~/.bashrc或您选择的文本编辑器打开文件。这是一个 bash 脚本,每次 bash 启动时运行。添加以下内容(将主题更改为您喜欢的主题): eval"$(oh-my-posh --init --sh...
19 | oh-my-posh init pwsh --config 'C:\Users\username\OneDrive\Documents\Powe … | ~~~ | 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, or if a path was included, verify that the...
oh-my-posh: C:\Users\username\OneDrive\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:19 Line|19|oh-my-posh init pwsh--config'C:\Users\username\OneDrive\Documents\Powe … | ~~~ | The term 'oh-my-posh' is not recognized as a name of a cmdlet, function, script file, or executa...
New-Item -Path $PROFILE -Type File -Force 接着在配置文件中添加如下内容 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" | Invo...
由于oh my posh仅支持nerd font,所以我安装了Microsoft最新版的cascadia-code(已支持nerd font): https://github.com/microsoft/cascadia-code 然后设置显示字体为nf后缀的: 以cascadia mono nf为例 接下来就是用theme文件美化终端,theme文件预览地址: https://ohmyposh.dev/docs/themes ...
打开一个powershell窗口,执行New-Item -Path $PROFILE -Type File -Force来创建一个新的profile, 再执行notepad $PROFILE用记事本打开它。 写入以下行: &([ScriptBlock]::Create((oh-my-poshinitpwsh--config"$env:POSH_THEMES_PATH\jandedobbeleer.omp.json"--print)-join"`n")) ...
forfilein~/.poshthemes/*.omp.json;doecho"$file\n"; oh-my-posh--config$file--shelluniversal;echo"\n";done; 1. ~/.bashrc使用nano ~/.bashrc或您选择的文本编辑器打开文件。这是一个bash脚本,每次bash启动时运行。添加以下内容(将主题更改为您喜欢的主题): ...
oh-my-posh:C:\Users\username\OneDrive\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:19Line|19|oh-my-posh init pwsh--config 'C:\Users\username\OneDrive\Documents\Powe …|~~~|The term'oh-my-posh'is not recognizedasa nameofa cmdlet,function,script file,or executable program.Check the ...