Auto complete for already used command line commands?
To use auto-complete of already used command line command we just need to edit the following lines:
sudo vim /etc/inputrc
1. Uncomment the following lines:
#”e[5~”: history-search-backward #”e[6~”: history-search-forward
If you don’t have this two lines just add them to the end of file (without #)
2. Logout/login
—
Now you can try to write some command listed in history…
like…
ls -lah
write
ls
and press
Page Up or Page Dn to navigate trough your history file in search of commands that starts with “ls”
If you did everything right it should auto-complete your command…
No Comments Yet.