1. 基本配置
1.1 配置三指拖动
设置->辅助功能->指针控制->触摸板选项->启用拖移->三指拖移
1.2 安装xcode
Xcode15安装iOS 17.0 Simulator失败的问题
1.3 设置允许安装所有应用
sudo spctl --master-disable
设置代理
export http_proxy=http://web-proxy.oa.com:8080
export https_proxy=$http_proxy
取消代理
unset https_proxy
unset http_proxy
2. 基本环境
安装 homebrew 安装 cocoapods,参考Mac 从零安装cocoapods
OS X 10.11之前系统的安装cocoapods 指令
sudo gem install cocoapods
OS X 10.11以后系统的安装cocoapods 指令
sudo gem install -n /usr/local/bin cocoapods
2. 安装 iTerm
包管理工具 homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
安装 zsh
brew install zsh
将zsh设置为默认shell
chsh -s /bin/zsh # CentOS
安装 oh-my-zsh,参考 zsh+on-my-zsh配置教程指南
brew install wget
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
zsh 问题解决办法
[oh-my-zsh] Insecure completion-dependent directories detected:
drwxrwxrwx 7 hans admin 238 2 9 10:13 /usr/local/share/zsh
drwxrwxrwx 6 hans admin 204 10 1 2017 /usr/local/share/zsh/site-functions
[oh-my-zsh] For safety, we will not load completions from these directories until
[oh-my-zsh] you fix their permissions and ownership and restart zsh.
[oh-my-zsh] See the above list for directories with group or other writability.
[oh-my-zsh] To fix your permissions you can do so by disabling
[oh-my-zsh] the write permission of "group" and "others" and making sure that the
[oh-my-zsh] owner of these directories is either root or your current user.
[oh-my-zsh] The following command may help:
[oh-my-zsh] compaudit | xargs chmod g-w,o-w
[oh-my-zsh] If the above didn't help or you want to skip the verification of
[oh-my-zsh] insecure directories you can set the variable ZSH_DISABLE_COMPFIX to
[oh-my-zsh] "true" before oh-my-zsh is sourced in your zshrc file.
put ZSH_DISABLE_COMPFIX=true at the first line of your .zshrc file and then
run source .zshrc
安装插件 autojump
brew install autojump
语法高亮插件 zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
~/.zshrc文件中配置
plugins=(其他的插件 zsh-syntax-highlighting)
自动补全插件 zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
~/.zshrc文件中配置
plugins=(其他的插件 zsh-autosuggestions)
插件 bat
设置无限滚屏
配置快捷键启动iTerm custom-iterm-applescripts-for-alfred
3. 安装 Alfred、cmake、gdb
4. 安装sublime Text
vs code更好用些,推荐
- 命令行安装 sublime-text
brew cask install sublime-text
- 安装 Sublime Package Control
- 解决不能正确显示中文的问题 安装 ConvertToUTF8 和 Codecs33,详见segmentfault.com/a/119000000…
- 安装 Filter Lines 插件
- 在iTerm中配置软链接
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
这样就可以在 shall 中使用快捷命令打开文本。
~ sublime .zshrc
4. 安装 XCode
5. 其他APP
Cornerstone svn客户端 / Syncro SVN Client,
Git 客户端 GUI/Sourcetree,
安装 git-lfs, iExplorer,sqlitebrowser,dash,Beyond Compare, Wireshark, XMind,BBEdit,MediaInfo,The Unarchiver,Charles, Go2Shell, XtraFinder