Preparations for Mac OS X developers

Source: Internet
Author: User
Tags install homebrew egrep

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.