@搁浅被注册了2年前
这段时间发生了很多变故,简而言之,现在在美图。
一篇来自多年 (前)Windows 用户的 MacOS 使用手记,不一定更新。
iTerm 2 :替换为系统默认终端,搭配 oh-my-zsh 食用更佳
Alfred: 高端版的 spotlight ,效率神器。
戳这里 https://www.sheyilin.com/2018/08/alfred_iterm2/
安装 SSR:
https://github.com/qinyuhang/ShadowsocksX-NG-R/releases
修改终端配置增加别名,在终端里使用 SSR 代理访问方法:
使用 iTerm2 + zsh 执行
vi ~/.zshrc
使用系统默认终端 bash 则直接执行
vi ~/.bash_profile
在最后加入下面的别名设置代码
# alias for proxy command alias on-proxy='export ALL_PROXY=socks5://127.0.0.1:1080;echo -e "芝麻开门"' alias off-proxy='unset ALL_PROXY;echo -e "芝麻关门"'
执行:wq! 保存
最后根据你的终端类型执行下面的命令重新加载配置
source ~/.zshrc
# 或者
source ~/.bash_profile
使用 on-proxy 和 off-proxy 在终端中开启关闭代理,上面设置的端口号在 SSR 的高级设置里。
安装 Xcode 命令行工具:
xcode-select --install
安装 Homebrew 软件包安装工具:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
获取 Homebrew Cask:
brew tap caskroom/cask
更新由 Homebrew 安装的程序:
brew upgrade brew cu
安装 android adb 工具:
brew cask install android-platform-tools
安装 shuttle SSH连接工具:
https://github.com/fitztrev/shuttle
搭配 ssh-copy-id 命令实现免密登录。
配置 JDK 环境:
https://blog.csdn.net/vvv_110/article/details/72897142
使用 MxSrvs 配置 LNMP 等环境:
http://www.xsrvs.com/
macOS 取消 Chrome 双指前进后退(需要重启Chrome)
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool FALSE
安装 whistle 替代 fiddler:
https://github.com/avwo/whistle/blob/master/README-zh_CN.md
macOS 里的 Chrome 跨域配置快速启动(参考上面的终端配置增加别名)
在你的终端配置里加入以下代码
# alias for chrome-disable-web-security alias chromedev='open -n /Applications/Google\ Chrome.app/ --args --disable-web-security --user-data-dir=/Users/你的用户目录/ChromeDev/'
最后的路径为自定的跨域 chome 安装目录,不要和原 chrome 目录冲突
保存并重新加载配置后,终端执行 chromedev 即可启动跨域配置的 chrome
保持 SSH 连接:
vi ~/.ssh/config
加入
Host * ServerAliveInterval 60
每60秒给服务器发送心跳包
常用快捷键:
command + n 新建程序窗口
command + option + esc 强制退出管理
fn + delete 回删
fn + option + shift + 音量或亮度 微调音量亮度
睡眠电池耗电优化:
sudo pmset -b standbydelay 3600 sudo pmset -b tcpkeepalive 0
系统预览功能增强:
https://github.com/sindresorhus/quick-look-plugins
磁力链接/种子播放器 SodaPlayer:
https://www.sodaplayer.com/
缓存提取技巧:播放进行时,使用 AppCleaner 找到 SodaPlayer 程序,点击查看所有程序关连文件夹,一般在最后一个文件夹点击右侧的放大镜打开,找到 sodaplayer 文件夹,接下来你懂的。PS. 关闭SodaPlayer 程序会清空目录。
视频播放器 IINA :
https://github.com/lhc70000/iina
wifi-location-changer
在不同网络位置下设置不同的静态 ip 地址的需求,系统的 “位置” 功能需要手动切换。
全自动的位置切换方法wifi-location-changer, 要求就是位置的名称要和 wifi 名称一致,而且不能有中文字符,全自动切换网络位置你值得拥有。
剪贴板工具:(Alfred附带此功能)https://github.com/Clipy/Clipy
App完全卸载:
https://freemacsoft.net/appcleaner/
百度网盘不限速下载器:
https://github.com/high-speed-downloader/high-speed-downloader
在 Fildder 中打开终端:(推荐使用 Alfred 的TerminalFinder)http://zipzapmac.com/Go2Shell
使用QQ截图:
https://blog.csdn.net/maxsky/article/details/52527991
触控板手势 BetterTouchTool:
使用触控板实现各种骚操作,比如新建,切换标签页等
https://sspai.com/post/27094
https://sspai.com/post/27105
SlowQuitApps 延迟 command + Q:
https://github.com/dteoh/SlowQuitApps
显示隐藏文件:defaults write com.apple.Finder AppleShowAllFiles YES
快捷键 Command + shift + . 切换更有效率
Dash 文档集合快速查询工具:
http://xclient.info/s/dash.html?t=8f157bd9266e1943fde7be85019bcca78bdfdfdf
Proxifier:强制应用使用 socks5 代理,配合 SSR 更高效
http://xclient.info/s/proxifier.html
隐藏其在 docks 上显示方法:
打开 Contents ,修改 Info.plist 里面加上 <key>LSUIElement</key> <string>1</string> 重启应用即可
AndroidFileTransfer:Google 官方出品,在 Mac 上访问安卓设备
Mounty:挂载 NTFS 磁盘
Kaleidoscope 文件比对工具
使用 Touch ID 授权 sudo:
sudo sed -i ".bak" '2s/^/auth sufficient pam_tid.so\'$'\n/g' /etc/pam.d/sudo
iTerm 需要进入设置,Advanced ,搜索 sudo ,把选项值改为 no
关闭 SIP 系统完整性保护模块
csrutil disable // 完全关闭 csrutil enable --without fs // 部分打开
干货