From 21198fbb5ed6a8b897924d994f4725af50566b7c Mon Sep 17 00:00:00 2001 From: Damiano Ognissanti Date: Wed, 19 Nov 2025 07:37:13 +0000 Subject: [PATCH] Cycle through completions with Tab Use Tab to cycle forward through completions and Shift+Tab to cycle backwards. --- sensible.bash | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sensible.bash b/sensible.bash index d876e64..d458589 100644 --- a/sensible.bash +++ b/sensible.bash @@ -44,6 +44,12 @@ bind "set show-all-if-ambiguous on" # Immediately add a trailing slash when autocompleting symlinks to directories bind "set mark-symlinked-directories on" +# Cycle forward through completion matches with Tab +bind '"\t": menu-complete' + +# Cycle backward through completion matches with Shift-Tab +bind '"\e[Z": menu-complete-backward' + ## SANE HISTORY DEFAULTS ## # Append to the history file, don't overwrite it