Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-06-2009, 02:49 PM
|
#1
|
Member
Registered: Mar 2008
Distribution: Ubuntu Lucid
Posts: 131
Rep:
|
Bash won't tab complete ANYTHING anymore :(
Hi.
I recently upgraded to ubuntu 9.10, and now Bash is broken
It will not tab-complete stuff it did before, such as apt-get install package names and common commands. it WILL however autocomplete directories. I'm thinking a PATH variable needs to be set
Can somone help?
Thanks
James
|
|
|
11-06-2009, 03:04 PM
|
#2
|
Member
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78
Rep:
|
If its only apt-get thats broken, it might be as simple as running
Code:
sudo apt-get update
so it downloads the package lists.
|
|
|
11-06-2009, 03:46 PM
|
#3
|
Member
Registered: Sep 2006
Location: Orange County, NY
Distribution: Ubuntu, Solaris, Android
Posts: 329
Rep:
|
To enable smart completion, edit your /etc/bash.bashrc file. Uncomment the following lines, by removing the # in the beginning of the lines:
#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi
you can also add the following lines to “.profile” or “.bashrc”:
# make bash autocomplete with up arrow
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
# make tab cycle through commands instead of listing
bind '"\t":menu-complete'
Regards,
JKZfixme
Last edited by jkzfixme; 11-06-2009 at 04:01 PM.
|
|
|
11-07-2009, 03:59 AM
|
#4
|
Member
Registered: Mar 2008
Distribution: Ubuntu Lucid
Posts: 131
Original Poster
Rep:
|
Quote:
Originally Posted by jkzfixme
To enable smart completion, edit your /etc/bash.bashrc file. Uncomment the following lines, by removing the # in the beginning of the lines:
#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi
you can also add the following lines to “.profile” or “.bashrc”:
# make bash autocomplete with up arrow
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
# make tab cycle through commands instead of listing
bind '"\t":menu-complete'
Regards,
JKZfixme
|
Thanks very very much for that; it works perfectly
Regards
James
|
|
|
11-07-2009, 04:00 AM
|
#5
|
Member
Registered: Mar 2008
Distribution: Ubuntu Lucid
Posts: 131
Original Poster
Rep:
|
Quote:
Originally Posted by tom4everitt
If its only apt-get thats broken, it might be as simple as running
Code:
sudo apt-get update
so it downloads the package lists.
|
No it was commands and apt-get. I do the update command about every hour out of very bad habit :P
Thankyou anyway
James
|
|
|
11-08-2009, 04:04 PM
|
#6
|
Member
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78
Rep:
|
Okay, it was a shot in the dark :P
Quote:
Originally Posted by jamwaffles
No it was commands and apt-get. I do the update command about every hour out of very bad habit :P
Thankyou anyway
James
|
|
|
|
11-09-2009, 01:10 PM
|
#7
|
Member
Registered: Mar 2008
Distribution: Ubuntu Lucid
Posts: 131
Original Poster
Rep:
|
Quote:
Originally Posted by tom4everitt
Okay, it was a shot in the dark :P
|
Lol nearly there. thanks for your suggestion anyhow
James
|
|
|
All times are GMT -5. The time now is 11:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|