Skip to content

Commit

Permalink
refactor: replace paradox.omp with amro.omp
Browse files Browse the repository at this point in the history
  • Loading branch information
MR-Addict committed Oct 22, 2024
1 parent d5ed007 commit e3758e7
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
- [使用 Vim](openwrt/vim.md)
- [使用 Uhttpd](openwrt/uhttpd.md)
- [使用 Mosquitto](openwrt/mosquitto.md)
- [其他常用命令](openwrt/others.md)
- [其他配置及常用命令](openwrt/others.md)

- [Mac]()

- [使用 快捷键](mac/shortcuts.md)
- [使用 NVM](mac/nvm.md)
- [使用 Homebrew](mac/homebrew.md)
- [其他配置及常用命令](mac/others.md)

- [Windows]()

Expand Down
16 changes: 16 additions & 0 deletions src/mac/others.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 其他配置及常用命令

## 一、Git 无法提交

问题描述:在提交代码时,出现如下错误:

```sh
warning: unable to access '/Users/cael/.config/git/ignore': Permission denied
warning: unable to access '/Users/cael/.config/git/attributes': Permission denied
```

这主要是由于权限问题导致的,可以通过以下命令解决:

```sh
sudo chown -R cael:(id -gn $USER) /Users/cael/.config
```
2 changes: 1 addition & 1 deletion src/openwrt/others.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 其他常用命令
# 其他配置及常用命令

更新包:

Expand Down
6 changes: 3 additions & 3 deletions src/tutorial/oh-my-posh.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ rm ~/.poshthemes/themes.zip
进入配置文件:

```sh
sudo vim ~/.vimrc
sudo vim ~/.bashrc
```

在最后添加以下内容:

```sh
eval "$(oh-my-posh --init --shell sh --config /home/cael/.poshthemes/paradox.omp.json)"
eval "$(oh-my-posh --init --shell sh --config /home/cael/.poshthemes/amro.omp.json)"
```

如果是 powershell,应该进入`$PROFILE`,然后添加以下内容:

```sh
oh-my-posh --init --shell pwsh --config /home/cael/.poshthemes/paradox.omp.json | Invoke-Expression
oh-my-posh --init --shell pwsh --config /home/cael/.poshthemes/amro.omp.json | Invoke-Expression
```

最后重新启动终端就可以正常使用了。
2 changes: 1 addition & 1 deletion src/windows/oh-my-posh.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object

```ps1
# Oh-My-Posh
oh-my-posh init --config "$env:POSH_THEMES_PATH/paradox.omp.json" | Invoke-Expression
oh-my-posh init --config "$env:POSH_THEMES_PATH/amro.omp.json" | Invoke-Expression
```
2 changes: 1 addition & 1 deletion src/windows/powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Set-Alias -Name git-clean -Value git_clean_fun
Set-Alias -Name docker-clean -Value docker_clean_fun
# Oh-My-Posh
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/paradox.omp.json" | Invoke-Expression
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/amro.omp.json" | Invoke-Expression
# Enviroments
$env:TF_ENABLE_ONEDNN_OPTS=0
Expand Down

0 comments on commit e3758e7

Please sign in to comment.