The following two tips to enhance Bash functions: one is to improve Bash command history management, and the other is to enable Bash to have a more intelligent automatic completion feature. The implementation process is not complex. You only need to modify the default configuration of Bash. Improve Bash command History Management: The default configuration of Bash has a problem. If you open two (or more) consoles at the same time, the commands executed on these two consoles are not shared to history. Some command history may even be overwritten. To solve this problem, add the following content ~ /. Bashrc or ~ /. In the bash_profile file, the first sentence of 1 shopt-s histappend2PROMPT_COMMAND = 'History-a' is used to append the command to history. The second sentence is to save history when a command prompt is displayed. Set intelligent auto-completion: In Bash, you can press the Tab key to enjoy the auto-completion feature. With the following settings, you can use the Up and Down keys to select the parameters after the command. In. inputrc (if the file does not exist, create one) with the following content: 1 "\ e [A": history-search-backward2 "\ e [B ": the first two sentences of history-search-forward3set show-all-if-ambiguous on use Up and Down to search in history. The next sentence is automatically completed by pressing Tab. If Ctrl-R is used together, it is easier to use.