在powershell中输入Get-PoshThemes,posh会将所有主题输出,并且会输出主题配置文件所在目录 To change your theme, adjust the init script in C:\Users\cxxu\Documents\PowerShell\Microsoft.PowerShell_profile.ps1. Example: oh-my-posh init pwsh --config 'C:\Users\cxxu\AppData\Local\Programs\oh-my-posh...
Themes 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 ...
[System.Console]::OutputEncoding=[System.Text.Encoding]::GetEncoding(65001)# 配置默认编码oh-my-poshinitpwsh--config"$env:POSH_THEMES_PATH\atomic.omp.json"|Invoke-Expression# 配置oh-my-posh的theme 你可以修改atomic.omp.json为oh-my-posh的主题文件,你可以在Themes | Oh My Posh这里找到自己喜欢的主...
Import-Moduleposh-gitImport-Moduleoh-my-posh 然后我们输入以下命令来预览效果 Get-PoshThemes 选择你喜欢的主题,记住他的名称,我这里选择honukai主题 输入这个命令 notepad$PROFILE 添加以下内容,在每次打开PowerShell的时候,就会执行里面的命令 Import-Moduleposh-gitImport-Moduleoh-my-poshSet-PoshPrompt-Themehonuka...
使用管理员身份打开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信息添加到提示中 ...
重新输入Get-PoshThemes再预览主题,然后挑选一个。挑好后,去修改 Microsoft.PowerShell_profile.ps1 文件内容,换主题名。 这里,我选了iterm2,于是就有了本文一开始的美化效果了。同样,在 Visual Studio Code 里设置一下终端字体也可以在 Visual Studio Code 里看到相同的效果: ...
Posh-Git是一个PowerShell模块,它集成了Git和PowerShell,提供可在PowerShell提示符中显示的Git状态摘要信息。 Caskaydia Cove Nerd Font 基于CascadiaCode的一个Nerd Font的字体补充库,里面包括了很多图标,这里推荐使用它。 CascadiaCode.zip PSReadLine https://github.com/PowerShell/PSReadLine ...
C:\\Users\\用户名\\AppData\\Local\\Programs\\oh-my-posh\\bin\\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 # 历史命令联想 ...
Once I moved to Mac, I changed my shell to use zsh usingOh My Zshdue to the rich experience it brings to the terminal. I was delighted to see all thesethemesand plugins, and then started looking for a theme that provided the same information posh-git prompt provided. To my surprise, ...
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 ...