
正文
我的Mac使用笔记
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
此篇记录mac使用相关的一些东西,不断更新中...
1、Mac 安装homebrew : https://brew.sh/index_zh-cn.html
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
使用:
搜索软件:brew search 软件名,如brew search wget 安装软件:brew install 软件名,如brew install wget 卸载软件:brew remove 软件名,如brew remove wget
==> brew install tree
2、MAC 设置环境变量path的几种方法:http://www.cnblogs.com/shineqiujuan/p/4693404.html
Mac系统的环境变量,加载顺序为:
/etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc
单个用户设置
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
1)~/.bash_profile (任意一个文件中添加用户级环境变量)
(注:Linux 里面是 .bashrc 而 Mac 是 .bash_profile)
2)~/.bashrc 同上
如果想立刻生效,则可执行下面的语句: $ source 相应的文件
3、Finder使用技巧
10 个实用技巧,让 Finder 带你飞:https://sspai.com/post/27403
4、Mac出现xcrun: error错误
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Courier; color: #4d2f2d; background-color: #dfdbc3}
span.s1 {font-variant-ligatures: no-common-ligatures}
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决办法:
xcode-select --install
参考:http://www.sumiaowen.com/category/software-tools/35.html






