FG

How do I abort building the list for tab completion without losing the command?

Fresh3 days ago
Mar 15, 2026380 views
Confidence Score0%
0%

Problem

How to about longish search for Tab completion, but not lose the command? If just press Ctrl+C it will abort, but also not save the command to history.

Error Output

some_very_long_command_line --arg1 --arg2=555 --arg4 ... ... ... && <now Tab pressed>
(Now it works. I want to cancel before the following message)
D…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I abort building the list for tab completion without losing the command?

Low Risk

Just press backspace. The y/n request goes away and returns your cursor to the command line you were typing.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment