Alias rename command under Mac Environment (permanent)

Source: Internet
Author: User

Implementing the alias Rename command in a Mac environment

IOS Dev may need to upload to a third-party distribution app to test the testers, such as dandelions and FIR, after using Xcode to complete the code.

The more efficient way to upload is to use Fastlane, when using Tastlane, you need to enter the corresponding command in iterm, cumbersome commands can be wrong to lose, so you need to simplify the command, in Linux provides us with a very convenient renaming command Alias , which is useful if you want to execute a command that is too long and does not conform to the user's habits, then we can specify an alias for it.

Method One:

1, the implementation cd ~ into the home directory;

2. Generate a new file;

Touch. Bash_profile

3, use the way you like to edit '. Bash_profile ' file, you can also use the '-e ' parameter, using ' TextEdit ' to open the file

4, edit the Bash_profile file will need to execute the alias command added to this file, after the completion of the Save

5. Update the built-in command

6. See if the success

Alais View Commands

Method Two: (This is when you use the Iterm+zsh case, the method changes after the restart, the new command will be invalidated)

PS:ZSH has its own startup default execution file ~/.ZSHRC , to make alias permanent in zsh, you only need to edit the ~/.ZSHRC file.

1, the implementation cd ~ into the home directory;

2. Open the . zshrc file

3. Edit the . zshrc file to add the alias command that needs to be executed to this file and save it after completion

4. Perform source ~/.ZSHRC update configuration

5. View commands

Summary: This simplifies the command, with Fastlane upload project to Pgyer is very easy to do not need to enter too many commands, the probability of error is much smaller.

Alias rename command under Mac Environment (permanent)

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.