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)