Myluzh Blog

Strive to become a dream architect.

一些关于macOS小技巧

发布时间: 2023-12-30 文章作者: myluzh 分类名称: macOS


0x01 关闭系统完整性保护(SIP)
开机按住command+R键,进入恢复模式。点击实用工具>点击终端。终端内输入命令:csrutil disable 然后回车执行后reboot。

0x02 开启hidpi
外界显示器模糊,需要开启hidpi,项目地址https://github.com/xzhih/one-key-hidpi
# 需要先关闭系统sip
sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/master/hidpi.sh)"
one-key-hidpi好像只能intel芯片,M系列使用 BetterDisplay 项目地址https://github.com/waydabber/BetterDispla

0x03 显示访达路径
mac下让Finder的标题栏显示全路径,而非当前文件夹名,终端运行:
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
访达菜单栏-显示-显示路径栏 或者快捷键 command+option+p
复制路径:command+option+c
复制文件夹路径:鼠标选择空白处
复制文件路径:鼠标选择文件

0x04 安装homebrew国内镜像
项目地址 https://gitee.com/cunkai/HomebrewCN
# intel芯片
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
m芯片自行查阅https://zhuanlan.zhihu.com/p/547898033

0x04 关闭开盖自动开机
1、取消翻盖自动开机
sudo nvram AutoBoot=%0
2、恢复翻盖自动开机
sudo nvram AutoBoot=%03

0x05 安装tcping
来源:https://github.com/paradiseduo/tcping
wget https://github.com/paradiseduo/tcping/releases/download/3.7/tcping.zip
unzip tcping.zip
chmod +x tcping
mv tcping /usr/local/bin/
sudo xattr -rd com.apple.quarantine /usr/local/bin/tcping


标签: macos homebrew sip hidpi

发表评论