Mac terminal automatic completion

The setting about the 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

  1. switch to the present user direct.

cd $home

  1. look whether there exists the file named .inputrc

ls -a

  1. If the file didn’t exist, create a new empty file by the following command.

touch .inputrc

  1. If there is a file named .inputrc, edit it directly by the following command
    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

  1. press control and S to save the change and close the file, restart your terminal

猜你喜欢

转载自blog.csdn.net/qq_38834590/article/details/89881858