Skip to content

Commit

Permalink
feat: add oh-my-posh
Browse files Browse the repository at this point in the history
  • Loading branch information
MR-Addict committed Oct 27, 2024
1 parent e3758e7 commit 6a8557a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

- [Mac]()

- [使用 快捷键](mac/shortcuts.md)
- [快捷键](mac/shortcuts.md)
- [使用 NVM](mac/nvm.md)
- [使用 Homebrew](mac/homebrew.md)
- [其他配置及常用命令](mac/others.md)
Expand Down
28 changes: 28 additions & 0 deletions src/mac/oh-my-posh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 使用 Oh-My-Posh

> 官方文档 📝
>
> [oh-my-posh](https://ohmyposh.dev/docs/installation/macos)
## 一、安装

通过 `homebrew` 安装 `oh-my-posh`

```bash
brew install romkatv/powerlevel10k/oh-my-posh
```

## 二、配置

`.zprofile` 中添加以下内容:

```sh
# Oh-my-posh
eval "$(oh-my-posh init zsh --config $(brew --prefix oh-my-posh)/themes/amro.omp.json)"
```

更改 cache 位置,新建一个 `~/.cache` 目录,oh-my-ppsh 会在这个目录下缓存一些文件:

```sh
mkdir ~/.cache
```
2 changes: 1 addition & 1 deletion src/mac/shortcuts.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 使用快捷键
# 快捷键

## 一、系统快捷键

Expand Down

0 comments on commit 6a8557a

Please sign in to comment.