Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  [Solved]Warning: bash-completion 1.99-1 is broken  (Read 8066 times)

nadir

  • Guest
[Solved]Warning: bash-completion 1.99-1 is broken
« Reply #15 on: 2012/01/11, 00:59:10 »
Code: [Select]
for i in $(ls /usr/share/bash-completion/completions/*)
The usage of the command 'ls' is superfluous.
http://mywiki.wooledge.org/BashPitfalls#for_i_in_.24.28ls_.2A.mp3.29

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.920
[Solved]Warning: bash-completion 1.99-1 is broken
« Reply #16 on: 2012/01/11, 15:17:13 »
The easyest way would be edit /etc/bash.bashrc and ~/.bashrc to the following:
Code: [Select]
# enable bash completion in interactive shells
if [ -f /usr/share/bash-completion/bash_completion ] && ! shopt -oq posix; then
    . /usr/share/bash-completion/bash_completion
fi
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.