首页 > 系统相关 >windows终端使用nushell+oh-my-posh美化

windows终端使用nushell+oh-my-posh美化

时间:2022-08-14 22:24:54浏览次数:79  
标签:nushell posh oh init my nu

先看效果图

1.png

步骤如有错误请指出。

从github安装nushell

从github release下载 Release 0.66.2 · nushell/nushell (github.com)

github release下载速度可能会很慢,可以在这里下载下载 (serctl.com)

在微软商店安装windows terminal

在微软商店安装oh-my-posh

也可以使用winget,不过需要正确的上网方式。

初始化oh-my-posh

oh-my-posh init nu --print | save %USERPROFILE%\\.config\\nu\\init.nu

使用上面的命令会生成一个init.nu脚本

nushell启动的时候执行init.nu

把下面添加到config.nu文件最后

source %USERPROFILE%\\.config\\nu\\init.nu

到此结束

标签:nushell,posh,oh,init,my,nu
From: https://www.cnblogs.com/mlzzen/p/16586547.html

相关文章