Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[Solved] How to activate autocompletion in terminal on RC3?
Thank you for your donation

Pages (2): 1 2 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
[Solved] How to activate autocompletion in terminal on RC3?
6th Oct, 2014, 07:29 PM
Post: #1
psyLord Offline
Registered
Posts: 22
Joined: Aug 2014
Reputation: 0
[Solved] How to activate autocompletion in terminal on RC3?
Hi,
I installed a fresh RC3 and it works nice.

But I realized that there is no autocompletion in the terminal anymore (I'm using ssh to log in.).
Is there a way to activate this? I'm using the terminal quite often and it's a bit annoying to type everything by hand.

Cheers
Find all posts by this user
Quote this message in a reply
6th Oct, 2014, 07:36 PM
Post: #2
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: How to activate autocompletion in terminal on RC3?
(6th Oct, 2014 07:29 PM)psyLord Wrote:  Hi,
I installed a fresh RC3 and it works nice.

But I realized that there is no autocompletion in the terminal anymore (I'm using ssh to log in.).
Is there a way to activate this? I'm using the terminal quite often and it's a bit annoying to type everything by hand.

Cheers

isn't this on the side of your SSH client?

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
6th Oct, 2014, 11:20 PM
Post: #3
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
RE: How to activate autocompletion in terminal on RC3?
No, i'don't believe client ssh has something to do with this,
i've got the same problem on Cubox with Xbian too since few times (maybe 1 month or a bit more).

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
7th Oct, 2014, 01:12 AM
Post: #4
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: How to activate autocompletion in terminal on RC3?
not sure but it does work for me
latest RC3 build

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
7th Oct, 2014, 03:11 AM
Post: #5
menakite Offline
Management
******
Posts: 175
Joined: Apr 2014
Reputation: 27
RE: How to activate autocompletion in terminal on RC3?
Can you try
Terminal
sudo apt-get install bash-completion

It's possible it is no longer installed by default.
Find all posts by this user
Quote this message in a reply
7th Oct, 2014, 08:26 PM
Post: #6
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: How to activate autocompletion in terminal on RC3?
yes, it is because of this. I would say bash_completion dropped out of default package list by mistake ...

it has only 1m installed, so why not to re-add-it.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
10th Oct, 2014, 06:18 PM
Post: #7
psyLord Offline
Registered
Posts: 22
Joined: Aug 2014
Reputation: 0
RE: How to activate autocompletion in terminal on RC3?
(7th Oct, 2014 03:11 AM)menakite Wrote:  Can you try
Terminal
sudo apt-get install bash-completion

It's possible it is no longer installed by default.

Thanks a lot! That worked.
Find all posts by this user
Quote this message in a reply
10th Oct, 2014, 06:45 PM
Post: #8
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
RE: [Solved] How to activate autocompletion in terminal on RC3?
Marked solved. Thanks menakite.

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
11th Oct, 2014, 01:47 AM
Post: #9
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
RE: [Solved] How to activate autocompletion in terminal on RC3?
By installing bash-completion, it work but not for apt (like before),
to enable auto-completion for apt, you should uncomment theses lines :

Code:
# enable bash completion in interactive shells
#if ! shopt -oq posix; then
#  if [ -f /usr/share/bash-completion/bash_completion ]; then
#    . /usr/share/bash-completion/bash_completion
#  elif [ -f /etc/bash_completion ]; then
#    . /etc/bash_completion
#  fi
#fi

in /etc/bash.bashrc

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
11th Oct, 2014, 05:03 AM
Post: #10
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: [Solved] How to activate autocompletion in terminal on RC3?
@belese

sourcing /usr/share/bash-completion/bash_completion is done through /etc/profile.d script . for me works on wheezy and also jessie without sourcing it again from bash profile script.

(and /etc/profile.d/*.sh are sourced from /etc/profile without any conditions. so it must be run for sure)

can you maybe check what bash version you have? actually the bash-completion is run only if bash is >= 4.1

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
11th Oct, 2014, 05:39 AM
Post: #11
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
RE: [Solved] How to activate autocompletion in terminal on RC3?
Code:
echo "$BASH_VERSION"
4.2.37(1)-release

i'm on raspebrry, maybe it need a reboot when bash-completion was installed, to re-run init script.
i don't think i've reboot between test, if you want i can comment again, and redo test after reboot.

and to be sure we're talking same, auto-completion for file, executable was working, just apt-get auto-completion didn't work (and maybe other interactive).

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
11th Oct, 2014, 07:58 AM
Post: #12
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: [Solved] How to activate autocompletion in terminal on RC3?
you need logout and login again.

the other things - yes, we mean the same.
please retest again as if it wouldn't work then it would have other implications too as we use there 3 own scripts. so your current setup would be worth checking - because I was sure until now those scripts are run always unconditionally.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
12th Oct, 2014, 01:47 AM
Post: #13
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
RE: [Solved] How to activate autocompletion in terminal on RC3?
yes it was working after commented lines again, need just a logout/login after install.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
14th Jan, 2015, 07:49 PM
Post: #14
Carpenter Offline
Registered
Posts: 51
Joined: Apr 2013
Reputation: 0
RE: [Solved] How to activate autocompletion in terminal on RC3?
I saw this threat and auto-completion looks really interesting to me. Apt says it's already installed but I'm not noticing any auto-completion, is there something I have to activate or someting?
Find all posts by this user
Quote this message in a reply
14th Jan, 2015, 08:13 PM
Post: #15
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: [Solved] How to activate autocompletion in terminal on RC3?
Auto-completion should just work OOTB. Just type something and hit [tab][tab]

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 14th May, 2025, 09:23 PM Powered By MyBB, © 2002-2025 MyBB Group.