mac常见使用

Mac 使用总结

安装 Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安装 Homebrew cask

brew tap caskroom/cask

之后安装大部分软件只需要用 Homebrew 和 Homebrew cask 即可。

需要破解版的应用的话可以去 这里找

推荐软件

alfred
bartender
cheatsheet
google-chrome
istat-menus
iterm2
licecap
manico
moon
oh-my-zsh
snap
the-unarchive
vanilla
visual-studio-code

brew cask 升级软件

brew tap buo/cask-upgrade

brew cu

Usage: brew cu [CASK] [options]
-a, --all             Include apps that auto-update in the upgrade.
--cleanup         Cleans up cached downloads and tracker symlinks after
updating.
-f  --force           Include apps that are marked as latest
(i.e. force-reinstall them).
--no-brew-update  Prevent auto-update of Homebrew, taps, and formulae
before checking outdated apps.
-y, --yes             Update all outdated apps; answer yes to updating packages.
-q, --quiet           Do not show information about installed apps or current options.

QQ登不上清理网络缓存

sudo killall -9 networkd

重置图标

defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock

拷贝 Finder 文件路径

Cmd + Opt + C

显示隐藏文件

defaults write com.apple.finder AppleShowAllFiles -bool true ; killall Finder

或者在 Finder 中 Cmd + Shift + .

隐藏隐藏文件

defaults write com.apple.finder AppleShowAllFiles -bool false ; killall Finder

或者在 Finder 中 Cmd + Shift + .

Finder 底部显示路径

Cmd + Opt + P

Finder 顶部显示路径

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

host 文件路径

/etc/hosts

快捷锁屏

系统偏好设置 -> 安全性与隐私 -> 通用 -> 可设置进入睡眠或开始屏幕后多久需要输入密码

OS X 10.9 以上 短按 Power(此为 Sleep,会断网) 或者

Ctrl + Shift + Power: 关闭屏幕
Cmd + Opt + Power: 睡眠
Cmd + Ctrl + Power: 重启
Cmd + Ctrl +Opt + Power: 关机

或者

系统偏好设置 -> 桌面与屏幕保护程序 -> 屏幕保护程序 -> 触发角

或者

Afread -> lock/sleep/screen saver


原文:
https://blankj.com/gitbook/
原文地址:https://www.cnblogs.com/cheflone/p/13221707.html