From 48655827be5931a762d6c7490891f08484e84169 Mon Sep 17 00:00:00 2001 From: HawkinC Macbook Date: Wed, 21 May 2025 11:38:17 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20wip:=20=E6=B7=BB=E5=8A=A0macOS?= =?UTF-8?q?=E4=B8=80=E9=94=AE=E5=88=9D=E5=A7=8B=E5=8C=96=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C=E5=8C=85=E5=90=AB=E7=B3=BB=E7=BB=9F=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=92=8C=E5=B8=B8=E7=94=A8=E8=BD=AF=E4=BB=B6=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- osx.bash | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 osx.bash diff --git a/osx.bash b/osx.bash new file mode 100644 index 0000000..0c823dd --- /dev/null +++ b/osx.bash @@ -0,0 +1,72 @@ +#!/bin/bash +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# 一键初始化 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# = 系统优化 +#> 视频资源: +# == 设置 +# === 锁屏不断网 +# 系统设置--电池--选项--将「硬盘」和「网络」改为“永不” +# 系统设置--显示器--高级--「……防止休眠」勾选 +# === 允许任意来源的app,然后可“设置>隐私与安全性>仍然允许” +sudo spctl --master-disable +# === +# = brew +# = python +# == uv +# === uv apps: tidevice +# == pyenv +# = nodejs +# == nvm +# == volta +# == corepack enable +# = 飞书客户端,官网 +# = arc 浏览器,要立刻同步 +# == arc 插件:沉浸式翻译、Vimium C、bitwarden、AutoJump、BiliScope、Virtual Json Viewer、思源(SiYuan)、篡改猴 +# = 远程配置仓库 +# = bash +# = zsh +# = apifox +# = ai chat tool +# == chat box +# == cherry box +# = vscode +# centos的remote-ssh,需要低于1.99.0——因为有glibc和kennel版本限制 +# 网页: https://code.visualstudio.com/updates/v1_98 +curl https://update.code.visualstudio.com/1.98.2/darwin-arm64/stable +# intel +curl https://update.code.visualstudio.com/1.98.2/darwin/stable +# == 插件、ai、 +# = 思源笔记 +# = obsidian +# = UI测试 +# == 网易airtest +# = 远程桌面 +# == anydesk +# == 向日葵 +# = transmit,破解版 +# = 腾讯会议 +# = 解压专家Oka +# = orbstack +# = 终端 +# == alacritty +# == iterm +# == wezterm +# = VPN +# = Xcode、xcode command line +# xcode可以在app store中直接下载,即为当前os版本可用的 +# = another redis desktop manager +# = robo 3t +# xmind +# = 预览 +# utool +# 爱思助手 +# = 时间段自动改主题:中午 +sudo cp "$HOME"/.config/.bin/.Dependencies/setup-kit/osx/com.user.switchtheme.plist ~/Library/LaunchAgents/com.user.switchtheme.plist +sudo launchctl load ~/Library/LaunchAgents/com.user.switchtheme.plist +#> 对于系统级的代理(放在 /Library/LaunchDaemons 目录下),需要使用 sudo 并指定 system +#~ sudo launchctl bootstrap system /Library/LaunchDaemons/com.user.switchtheme.plist +#> 语法错误: 检查 .plist 文件的语法是否正确 +# plutil -lint ~/Library/LaunchAgents/com.user.switchtheme.plist +#> 查看系统日志获取更多信息 +# log show --predicate 'process == "launchd"' --info --last 1h