macOS Memo

macOS Memo

命令行寻找文件

和Linux系统的mlocate/locate类似

1
mdfind [keyword]

安装GNU系列的工具

1
brew install coreutils

注意安装完成之后提示的修改PATH方法.

安装Python2

1
brew install python@2

安装 OpenCV

1
brew install opencv, hdf5, tesseract

Homebrew

地址

安装

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

配置formula索引镜像

清华镜像配置

1
2
3
4
5
6
7
cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

brew update

配置二进制预编译包配置

1
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles

homebrew-science 现在不需要配置了

禁用每次安装的更新

1
export HOMEBREW_NO_AUTO_UPDATE=1

iterm2

1
2
# https://gist.github.com/kevin-smets/8568070
brew cask install iterm2

dirclors

https://github.com/gibbling/dircolors

zsh

oh my zsh

1
plugins=(git jump brew osx zsh-syntax-highlighting zsh-autosuggestions)

sshfs

https://github.com/osxfuse/osxfuse/wiki/SSHFS
macOS 加快访问速度的挂载方法:

1
2
3
sshfs Mongolia:/ Mongolia -o auto_cache,reconnect,defer_permissions,noappledouble
# or
sshfs usrname@ip:/path/to/file /path/to/local -o auto_cache,reconnect,defer_permissions,noappledouble

读写 ntfs

1
brew cask install mounty

平滑鼠标操作

1
brew cask install mos

为 iTerm 配置 lrzsz / zmodem

https://github.com/mmastrac/iterm2-zmodem

locate

1
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

登录启动项修改

下面对应的文件记录了启动项, 删除或者重命名到非 plist 结尾 可以搞定

1
/Library/LaunchAgents

欧陆词典

  1. 使用xcode修改 /Users/didi/Library/Preferences/com.eusoft.eudic.plist, 把 MAIN_TimesLeft 的Value改为820711.
  2. 把文件只读并且锁定.
0%