Automatic completion of Mac terminal
All the operation are finished in the terminal by command line
Open your terminal by click the icon of terminal
- switch to the present user direct.
cd $home
- look whether there exists the file named .inputrc
ls -a
- If the file didn’t exist, create a new empty file by the following command.
touch .inputrc
- If there is a file named .inputrc, edit it directly by the following command line
open -e .inputrc
. and your system will use the default editor to open the file
copy and paste the following code to the file.
set show-all-if-ambiguous on
set completion-ignore-case on
TAB: menu-complete
- press control and S to save the change and close the file, restart your terminal