Fedora Linux Support Community & Resources Center
  #1  
Old 14th March 2005, 08:19 AM
jruizICF Offline
Registered User
 
Join Date: Mar 2005
Posts: 2
bash completion (PgUp/PgDwn)

Hi!

I normaly use FC and Gentoo in different machines. I really find usefull that in gentoo, you can use PgUp and PgDwn keys to complete a full line (command) from the history, for example:

$ cp m
[press PgUp key and get...]
$ cp myfile myfile2

I was trying to arrange this in FC3, I installed bash-completion (rpm), but no luck... Does anybody know how to get this working?

Thanks
Reply With Quote
  #2  
Old 15th March 2005, 02:47 PM
jruizICF Offline
Registered User
 
Join Date: Mar 2005
Posts: 2
Solution found...

Ok, I finally found the solution, I answer to myself so everybody can use it (believe me, once you start using advanced bash completion systems, your cannot stop using em).

Important! For Bash users only (dunno for other shells).

Edit your ~/.bashrc file, and just only add:

Code:
bind '"\e[5~":history-search-forward'
bind '"\e[6~":history-search-backward'
Note: '"\e[5~" is the PgUp key and '"\e[6~" PgDwn key.

Peace!
Reply With Quote
Reply

Tags
bash, completion, pgup or pgdwn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get bash completion working on fedora 3 (bash 3.0) madcat Guides & Solutions (No Questions) 2 27th November 2004 12:05 PM
Update: bash-completion 20040526 (rh9,fc1,fc2,stable) fedora-package-announce-admin@fedora.us Advisories & Updates 0 29th May 2004 08:54 AM
Update: bash-completion 20031112 (RH9/FC1/stable) fedora-package-announce-admin@fedora.us Advisories & Updates 0 22nd November 2003 02:47 PM


Current GMT-time: 07:17 (Thursday, 18-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
El Doll - Cerveseria Moderna & Restaurant - Telok Blangah Crescent Market & Food Centre Travel Photos on Instagram