bash: smart autocomplete based on history? - Super User

PHOTO EMBED

Sat May 29 2021 21:21:45 GMT+0000 (Coordinated Universal Time)

Saved by @rezaeir #bsh

cat >> ~/.inputrc <<'EOF'
"\e[A": history-search-backward
"\e[B": history-search-forward
EOF

# then
bind -f  ~/.inputrc
content_copyCOPY

https://superuser.com/questions/748809/bash-smart-autocomplete-based-on-history