How to Enable Auto Complete by History with Bash (Ubuntu demo)

Опубликовано: 20 Март 2026
на канале: Jason Cheung
14,011
74

How to enable auto complete by history, instead of last used by using bash and arrow keys. For tab completion and history cycling see my other video:    • Bash - Enable Auto Complete (Tab, Arrow, C...  

Commands for auto complete by history:
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on

Make sure to open a new terminal so the changes work!

Extra: Tab completion can be enabled by doing:
sudo apt update
sudo apt install bash-completion

0:00 - Generate commands for testing
0:14 - Add autocomplete command
0:34 - Demo

🎵 Track Info:
Title: I Am OK — Vishmak [Audio Library Release]
––––––––––––––––––––––––––––––
Track: I Am OK — Vishmak [Audio Library Release]
Music provided by Audio Library Plus
Watch:    • I Am OK — Vishmak | Free Background Music ...  
Free Download / Stream: https://alplus.io/i-am-ok
––––––––––––––––––––––––––––––