LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Thread Tools
Old 11-06-2009, 03:49 PM   #1
jamwaffles
Member
 
Registered: Mar 2008
Distribution: Ubuntu Karmic
Posts: 131
Thanked: 6
Bash won't tab complete ANYTHING anymore :(


[Log in to get rid of this advertisement]
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
linuxubuntu jamwaffles is offline     Reply With Quote
Old 11-06-2009, 04:04 PM   #2
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 38
Thanked: 6
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.
macos tom4everitt is offline     Reply With Quote


Old 11-06-2009, 04:46 PM   #3
jkzfixme
Member
 
Registered: Sep 2006
Location: Orange County, NY
Distribution: Ubuntu & Solaris
Posts: 232
Blog Entries: 15
Thanked: 13
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 05:01 PM..
windows_xp_2003 jkzfixme is offline     Reply With Quote


Thanked by:
Old 11-07-2009, 04:59 AM   #4
jamwaffles
Member
 
Registered: Mar 2008
Distribution: Ubuntu Karmic
Posts: 131
Thanked: 6

Original Poster
Quote:
Originally Posted by jkzfixme View Post
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
linuxubuntu jamwaffles is offline     Reply With Quote


Old 11-07-2009, 05:00 AM   #5
jamwaffles
Member
 
Registered: Mar 2008
Distribution: Ubuntu Karmic
Posts: 131
Thanked: 6

Original Poster
Quote:
Originally Posted by tom4everitt View Post
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
linuxubuntu jamwaffles is offline     Reply With Quote


Old 11-08-2009, 05:04 PM   #6
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 38
Thanked: 6
Okay, it was a shot in the dark :P

Quote:
Originally Posted by jamwaffles View Post
No it was commands and apt-get. I do the update command about every hour out of very bad habit :P

Thankyou anyway

James
macos tom4everitt is offline     Reply With Quote


Old 11-09-2009, 02:10 PM   #7
jamwaffles
Member
 
Registered: Mar 2008
Distribution: Ubuntu Karmic
Posts: 131
Thanked: 6

Original Poster
Quote:
Originally Posted by tom4everitt View Post
Okay, it was a shot in the dark :P
Lol nearly there. thanks for your suggestion anyhow

James
linuxubuntu jamwaffles is offline     Reply With Quote



Reply

Bookmarks


Thread Tools

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
How to get tab auto complete in bash to scroll through all possible choices joeldick Linux - Software 4 09-16-2009 03:42 PM
Tab does not auto-complete in terminal General Fedora 3 05-07-2009 02:59 PM
Bash script using tab complete sadarax Programming 6 01-30-2007 09:21 PM
Shells & Tab complete. sph90457 Solaris / OpenSolaris 1 05-19-2005 04:59 PM
tab complete Frustin AIX 4 07-19-2004 03:31 AM


All times are GMT -5. The time now is 03:34 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration