LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-18-2010, 04:58 PM   #1
TiredOfThis
Member
 
Registered: Oct 2007
Posts: 53

Rep: Reputation: 15
Make Ctrl + backspace work in bash


Hey all,

I've tried without luck to get ctrl-backspace working to delete the previous word in bash. I edited my .inputrc and tried the following:

"\C-\b": unix-word-rubout
Control-Rubout: unix-word-rubout

I can make it work if I change it to some other sequence (Control-j: unix-word-rubout makes ^j erase the word), but I can't make it work with backspace.

Is there something I'm missing, or is this just not possible for some stupid reason?

Thanks
Nathan
 
Old 01-19-2010, 02:51 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
maybe something else catches it before it makes to bash. what would be it? well if it's inside a x terminal emulator here, x window, window manager or desktop environtment are posible suspects. where's the bash running?
 
Old 01-20-2010, 12:08 PM   #3
TiredOfThis
Member
 
Registered: Oct 2007
Posts: 53

Original Poster
Rep: Reputation: 15
Good thought...but the same problem happens in Konsole and xterm and on the actual cmd line (runlevel 3).
 
Old 01-27-2010, 09:50 AM   #4
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
when i do ctrl-backspace it deletes a character. it's usually delete a word. well maybe it's a bash thing.
 
Old 01-27-2010, 11:35 AM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I just looked into it a bit, and I learned that alt-backspace will backspace one word.
 
Old 01-28-2010, 07:53 AM   #6
TiredOfThis
Member
 
Registered: Oct 2007
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bigrigdriver View Post
I just looked into it a bit, and I learned that alt-backspace will backspace one word.
Yes, that's true. However, since practically every other application on the planet supports Ctrl + Backspace, now I have that muscle memory and would rather not have to remember "Use Ctrl + Backspace unless I'm in bash, in which case use Alt + Backspace"

(That will probably just lead to me getting confused and pressing Ctrl + Alt + Backspace, with HILARIOUS RESULTS.)

Nathan
 
Old 01-28-2010, 08:05 AM   #7
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by TiredOfThis View Post
Yes, that's true. However, since practically every other application on the planet supports Ctrl + Backspace, now I have that muscle memory and would rather not have to remember "Use Ctrl + Backspace unless I'm in bash, in which case use Alt + Backspace"

(That will probably just lead to me getting confused and pressing Ctrl + Alt + Backspace, with HILARIOUS RESULTS.)

Nathan
i accidently used ctrl-c for copying texts at terminals with HILARIOUS RESULTS (xfce4-terminal adds shift to ctrl-x,c,v whitch is good but still time to time i do ctrl+c with that HILARIOUS RESULTS).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ctrl+alt+backspace marsques Linux - Newbie 2 02-04-2009 01:05 PM
Ctrl + backspace in shell mushk45 Linux - Software 1 12-23-2006 10:12 PM
dark screen when pressing Ctrl + Alt + Backspace or Ctrl + Alt F1-F6 in Gnome or KDE trinoo Slackware 5 01-28-2005 08:13 AM
ctrl+8=backspace ??? Griffon26 Linux - General 1 09-02-2003 08:21 PM
Ctrl+Alt+Backspace Socka Linux - Newbie 8 05-18-2003 07:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration