💻 Software
How do I make ESC clear a line in Bash Under Windows instead of Ctrl+u?
Fresh5 days ago
Mar 15, 20262477 viewsConfidence Score0%
0%
Problem
I use bash in Windows, both in Cygwin and in Git Bash (part of Git for Windows). In bash unlike in the Windows Esc does not clear the line, only Ctrl + U. How can I make clear the line also? Thanks!
Error Output
cmd.exe
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 make ESC clear a line in Bash Under Windows instead of Ctrl+u?
Low Risk
I don't have a Cygwin or Git for Windows install handy to test this, but here's the Unix answer: Create a file in your (cygwin) home directory named ".inputrc", and add this line to it: On my favorite Unix variant, Control-u is mapped to unix-line-d…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix