✍️
HOME
  • Introduction
  • Android
    • 基础
      • 文件读写
      • View
      • ViewGroup
      • Drawable
        • Shape
        • Selector
      • RecycleView
      • Databinding
    • Android Studio Git使用教程
    • Android Studio 版本更新历史
    • Maven 依赖管理
  • Linux
    • Linux系统安装
    • Linux 基础知识
    • Linux 服务器维护
    • 树莓派
    • Ubuntu
    • CDLinux
    • Shell Auto
    • 酸酸乳好喝
    • 后台运行
    • FRP
    • V +
  • Mac
    • Mac 版迅雷去广告
    • Homebrew 管理应用
    • 装机必备
  • Web
    • 前端环境搭建
    • 特殊需求
    • Python
  • Dev
    • Git 常用命令
    • Git submodule 和 subtree
    • GitBook
    • 软件问题处理
Powered by GitBook
On this page
  • ohmyzsh
  • 终端 App Store
  • site
  • 环境变量设置
  • 加载顺序
  • 添加
  • 查看
  • 我的配置
  • Dnsmasq
  • 自定义解析
  • 预览增强
  • 压缩
  • NTFS
  • 文件备份
  • 下载
  • Markdown
  • 数据库

Was this helpful?

  1. Mac

装机必备

PreviousHomebrew 管理应用Next前端环境搭建

Last updated 4 years ago

Was this helpful?

ohmyzsh

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

终端 App Store

brew install mas

site

、 、

环境变量设置

加载顺序

bash

/etc/profile,/etc/bashrc,/etc/paths,/etc/paths.d/,~/.bash_profile

zsh

/etc/profile,/etc/zshrc,/etc/paths,/etc/paths.d/,~/.zshrc

添加

# profile
export PATH="$PATH:<PATH 1>:<PATH 2>:<PATH 3>:...:<PATH N>"
# paths
sudo -s 'echo "/usr/local/sbin/mypath" > /etc/paths.d/mypath'
export PATH="$PATH:<PATH 1>:<PATH 2>:<PATH 3>:...:<PATH N>"

查看

PATH echo $PATH

内置SHELL cat shells

我的配置

# Go
export GOROOT=/usr/local/Cellar/go/1.12/libexec
export GOPATH=/Users/wittyneko/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN:$GOROOT/bin

# Android
export ANDROID_HOME=~/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

# Flutter
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export FLUTTER_HOME=~/Library/flutter
export PATH=$PATH:$FLUTTER_HOME/bin

Dnsmasq

brew install dnsmasq
vim /usr/local/etc/resolv.dnsmasq.conf
vim /usr/local/etc/dnsmasq.conf
# /usr/local/etc/dnsmasq.d/*
# 清除DNS缓存
sudo killall -HUP mDNSResponder
# 重启
sudo brew services stop dnsmasq
sudo brew services start dnsmasq
sudo launchctl stop homebrew.mxcl.dnsmasq
sudo launchctl start homebrew.mxcl.dnsmasq

自定义解析

/usr/local/etc/dnsmasq.d/my.address.conf

# 加速GitHub访问
address=/github.com/192.30.253.112
address=/github.com/192.30.253.113

预览增强

# markdown
brew cask install qlmarkdown
# code
brew cask install qlcolorcode
brew cask install scriptql
# webp
brew cask install webpquicklook
# zip 
# or http://macitbetter.com/BetterZipQL.zip
brew cask install hetimazipql

压缩

  • The Unarchiver brew cask install the-unarchiver

  • Keka brew cask install keka kekadefaultapp

  • WinRAR brew cask install rar

NTFS

brew cask install mounty

文件备份

# rsync -av [源文件夹路径] [备份路径]
# rsync -av [源文件夹路径] [备份路径] --delete
sudo tmutil setdestination -p /Volumes/backup/

下载

Folx 5、FDM、Leech 3、uTorrent、Transmission、Aria2

Markdown

数据库

cleanmymac-3
synergy2
eudic
macOS/Linux 环境变量设置- 知乎
ipaddress ip-lookup
dnsmasq-china-list
利用Dnsmasq 部署DNS 服务- 运维之美
Mac上用dnsmasq配置DNS服务器
增强 Mac「预览」功能(QuickLook)的教程
QuickLookPlugins.com
Mac 压缩 / 解压缩工具解决方案
Mounty for NTFS
文件备份还能怎么玩?试试这条命令
添加Mac的Time Machine备份到smb网络硬盘(windows 共享文件夹)
除了会员,别无选择?6 款 Mac 下载工具帮你加速
Typora 主题
SequelPro
DBeaver