feat: update posts

This commit is contained in:
2024-01-24 19:21:26 +08:00
committed by GitHub
parent 0195d85641
commit f97d55835b

View File

@@ -135,6 +135,9 @@ sudo swapon -s
保存并退出文件现在我们的交换分区会一直被挂载了我们重启后可以在终端运行  `free -m`  来检查交换分区是否生效
还可以按需选择使用 zram提升内存可用量不过会略微增加 cpu 使用和内存延时可以搜索 zramctl, zramswap 等关键字
---
### 1.7 绑定域名  
@@ -188,7 +191,12 @@ Host serverA
```shell
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# 如果在墙内 github 速度不加可以考虑使用清华的镜像
# https://mirrors.tuna.tsinghua.edu.cn/help/ohmyzsh.git/
# 先下载到任意位置然后指定REMOTE 参数执行安装程序
git clone https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git --depth=1
cd ohmyzsh/tools
REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git sh install.sh
```
安装插件
@@ -199,6 +207,11 @@ git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/z
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting --depth=1
```
git clone速度不佳可以考虑一些开放的加速服务比如
- https://ghproxy.org/
- https://mirror.ghproxy.com/
按需修改配置文件位置`~/.zshrc`, 下面为个人常用配置供参考注意去源文件修改对应项没有再到末尾加
```shell