type
status
date
slug
summary
tags
category
icon
password
安装Fish Shell并将fish设置为默认终端
更改默认Shell为Fish,使用`chsh`命令:
chsh -s /usr/bin/fish
然后我在配置文件
~/.config/fish/config.fish
中设置了这些在安装了herd字体后,我们来安装oh my posh主题
对于linux
修改终端配置文件
确定 Oh my posh 已经安装成功后,读者可以提前到项目官网的 主题页面 预览内置主题的效果,记下需要使用的主题在本地的路径。以 amro 主题为例,使用不同安装方式得到的主题路径参考下表:
macOS Brew | ~/.poshthemes/amro.omp.json |
GNU/Linux 命令行 | ~/.poshthemes/amro.omp.json |

在fish的配置文件中加入
oh-my-posh init fish --config ~/.poshthemes/amro.omp.json | source
即可更换主题。当然你也可以选自己喜欢的主题,‣




我选择了
1_shell
主题
- 作者:Bayesianovich
- 链接:https://ml.bayesianovich.top//article/12db4c44-ff79-802c-8f3f-e5cb4bfd0da4
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。
相关文章