oh-my-posh init pwsh --config"C:\Users\wangb\AppData\Local\Programs\oh-my-posh\themes\kali.omp.json"|Invoke-Expression theme是以json文件的格式进行保存,通过--config选项对theme文件进行配置,这里比较推荐使用绝对路径 themes目录下官方已经提供了很多配置文件,具体的效果可以参考以下链接 Themes | Oh My ...
1、安装oh my posh sudo wget sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh sudo chmod +x /usr/local/bin/oh-my-posh 2、安装主题 我这里推荐大家把主题安装到windows下,方便wsl管理调用。 方法如下图 winget...
Import-Module oh-my-posh Set-PoshPrompt -Theme JanDeDobbeleer 第一条命令表示导入posh-git 第二条命令表示导入oh-my-posh 第三条命令表示设置主题为JanDeDobbeleer 配置完后,每次打开Windows Terminal中的Power shell都会执行脚本文件中的三条命令。 #注意:此处的第三行是oh-my-posh2与3的不同之一,在oh-m...
安装命令:winget install JanDeDobbeleer.OhMyPosh -s winget 三、字体 官网提议下载字体包,去这里:https://www.nerdfonts.com/font-downloads 找个顺眼的安装上,不装不影响。解压,全选字体,右键安装即可。四、配置 新建配置文件 加入内容 oh-my-posh init pwsh | Invoke-Expression 使生效 会报错不用管...
sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh sudo chmod +x /usr/local/bin/oh-my-posh#下载主题文件 mkdir ~/.poshthemes wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/themes....
https://www.nerdfonts.com/font-downloads 字体配置结束后,修改配置文件 #可以查看配置文件位置 $PROFILE # 文本打开配置文件 notepad$PROFILE 添加如下文本,其中1_shell为主题名,更多主题风格可以执行Get-PoshThemes获取 oh-my-posh init pwsh --config"$env:POSH_...
字体安装教程:https://ohmyposh.dev/docs/fonts 安装oh-my-posh wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh chmod +x /usr/local/bin/oh-my-posh 配置 mkdir ~/.poshthemes wget https://github.com/JanDeDobbele...
What started as the offspring ofoh-my-posh2for PowerShell resulted in a cross platform, highly customizable and extensible prompt theme engine. After 4 years of working on oh-my-posh, a modern and more efficient tool was needed to suit my personal needs. ...
oh-my-posh 给我们内置了很多主题,使用命令即可查看所有内置主题 Get-PoshThemes 然后选择自己喜欢的修改配置文件即可。也可以参考这里:oh-my-posh themes image.png 用这个命令设置主题 Set-PoshPrompt-Theme<主题名> 不过这个效果是暂时的,只针对当前shell如,果想要永久有效,继续看下边。
chmod+x /usr/local/bin/oh-my-posh 1. 2. 配置 mkdir~/.poshthemes wgethttps://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/themes.zip-O~/.poshthemes/themes.zip unzip ~/.poshthemes/themes.zip-d~/.poshthemes chmodu+rw ~/.poshthemes/*.json ...