News for hackers. Stuff that matters.
Re:Zsh-lovers – tips, tricks and examples for the Z shell by e12e on Saturday March 30, 2013 @04:21PM (#5466550)
On a Debian derivate distribution, do:

  sudo aptitude install bash-completion #or apt-get install...
  #Then in your .bashrc do something like:
  # enable programmable completion features (you don't need to enable
  # this, if it's already enabled in /etc/bash.bashrc).
  if [ -f /etc/bash_completion ]
  then
      . /etc/bash_completion
  fi
The latter (or equivalent) is already in /etc/skel/.bashrc on Debian at least (provided by the bash package), so users created with eg. adduser already have this in their .bashrc. IIRC it may be commented out in Debian stable - I currently run testing, and /etc/skel/.bashrc there contains:

  # enable programmable completion features (you don't need to enable
  # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  # sources /etc/bash.bashrc).
  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

edit: missing words

There are no comments on this comment yet.