如何在shell打开文件
[wlsh@wlsh-MacbookPro] MyCode$ cd /
[wlsh@wlsh-MacbookPro] /$ cd /usr/local/
[wlsh@wlsh-MacbookPro] local$ open .
安装homebrew
官网:https://brew.sh,命令可能会变,建议官网直接复制安装即可
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
[wlsh@wlsh-MacbookPro] ~$ brew config
HOMEBREW_VERSION: 2.1.2-23-gea0b36f-dirty
ORIGIN: https://github.com/Homebrew/brew
HEAD: ea0b36f69a671b2af65aac6f9ef4caa5505dfe81
Last commit: 24 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 35c9cbb38f446b1efe6432ed8c2b7a69eba6824e
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 10.0 build 1001
Git: 2.20.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
macOS: 10.14.4-x86_64
CLT: 10.2.1.0.1.1554506761
Xcode: 10.2.1
CLT headers: 10.2.1.0.1.1554506761
安装anaconda
参考链接:http://casshsu.blogspot.com/2017/01/anaconda-mac-homebrew.html
[wlsh@wlsh-MacbookPro] ~$ brew update
[wlsh@wlsh-MacbookPro] ~$ brew search anaconda
==> Casks
anaconda
[wlsh@wlsh-MacbookPro] ~$ brew cask install anaconda
? anaconda was successfully installed!
[wlsh@wlsh-MacbookPro] ~$ conda --version
-bash: conda: command not found
[wlsh@wlsh-MacbookPro] ~$ vi .bash_profile
export PATH=/usr/local/anaconda3/bin:$PATH
[wlsh@wlsh-MacbookPro] ~$ . .bash_profile
[wlsh@wlsh-MacbookPro] ~$ conda --version
conda 4.6.11