Posts tagged readline

Hacking Your Bash Terminal with Custom Widgets

Blog Post Publish Date: 2026/10/25

This blog post explains how to create custom Bash widgets: Bash functions bound to keyboard shortcuts through the GNU Readline library. It continues GNU Readline: The Magic Behind Terminal Autocomplete, and ends with a widget that reruns the current command every two seconds.

Read more ...


GNU Readline: The Magic Behind Terminal Autocomplete

Blog Post Publish Date: 2026/10/18

This blog post explains what GNU Readline is and how it powers the line editing, history navigation, and auto-completion you use every day in the terminal. It also shows the configuration I reach for the most: making the Up and Down arrows search your command history by prefix. It's a small change that saved me a lot of keystrokes.

Read more ...