One, what is UltraEdit
I think it's a programmer, and the code knows what Urledit is. We are going to use Linux and have a very famous editor gedit in Linux, which allows us to enter gedit XXX in the terminal. You can edit the software by entering the visual window.
Gedit can also be used on Macs, but gedit. There's a better software UltraEdit on Mac, but how do we use gedit as a command to edit any file?
Second, the Preparation tool
1. Download UltraEdit.
Address: Baidu Settlement
Three, configure
1. Create a new uedit.sh (SH is an executable file. Uedit.sh will be your quick command to open UltraEdit)
VI uedit.sh
Enter the edit mode for I into VI. Then copy the contents below into the terminal.
Press ESC to enter command mode, and then press ZZ to exit the save.
2. Move files, modify permissions
sudo mv uedit.sh/bin//+x uedit.sh
So we can use the command: uedit.sh XXX
But it seems that with the. sh suffix there is no force lattice, we give him an individual name below.
3. Aliases
Uedit.sh ~/.bash_profile
Then enter the following and save:
Alias uedit= "Uedit.sh"
Enter the command in the terminal and let the content I just set up take effect:
SOURCE ~/.bash_profile
Four, using shortcut commands
Punch a file: Uedit xxx
Write in the back:
In fact, the Mac itself with the TextEdit is also very useful, more concise and practical. You can still add shortcut commands as described above.
Mac OS Add quick Use commands for UltraEdit in terminal