Preparations for Mac OS X developers
After migrating to the Mac platform for development, we need a series of preparations to make our work smoother.
1. Install Homebrew Package Manager
The Apple system comes with a package manager, but it is not very useful. Currently, Homebrew is a popular tool, which is very easy to use. You can easily install and uninstall the software by using only one brew command, similar to the apt-get tool in Ubuntu. Open the terminal and enter the following command:
Ruby-e "$ (curl-fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )"
2. Install python3
Python2.7 is installed in Apple by default. However, as Python3 becomes increasingly popular, installing new Python versions is also the trend of the times. After Homebrew is installed, it is extremely simple to install other software. You can simply use the following command.
Brew install python3
3. Enrich the terminal color
Users familiar with Linux may not be able to adapt to Mac, because the output on Mac terminals is always black and white, and there is no rich color to distinguish different content. Here, we can use some tools to make Mac terminal color more rich, reference: http://linfan.info/blog/2012/02/27/colorful-terminal-in-mac/
Brew install xz coreutils
Then edit the environment variable configuration file ~ /. Bash_profile, the content is as follows:
If brew list | grep coreutils>/dev/null; then
PATH = "$ (brew -- prefix coreutils)/libexec/gnubin: $ PATH"
Alias ls = 'LS-F -- show-control-chars -- color = auto'
Alias ll = 'LS-lFa -- color = auto'
Alias grep = 'grep -- color'
Alias egrep = 'egrep -- color'
Alias fgrep = 'fgrep -- color'
Eval 'gdircolors-B $ HOME/. dir_colors'
Fi
. Bash_profile
4. X-Code
This is the basis of other open tools. For example, Qt requires some X-Code support. Therefore, this tool is indispensable, but the installation method is very simple. You can download it directly from the App Store. It is a free software.
This article permanently updates the link address: