MarvinMep

Habilitar o autocompletar no bash

Mar 29th, 2022
1,217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.53 KB | None | 0 0
  1. #instalar o bash-completion
  2. $ sudo apt-get install --reinstall bash-completion
  3.  
  4. #copiar no bashrc do sistema para o home (para não ter que mexer no sistema)
  5. $ cp /etc/bash.bashrc ~/.bashrc
  6.  
  7. #descomentar as seguintes linhas no bashrc do home para ficar como abaixo:
  8.  
  9. # enable bash completion in interactive shells
  10. if ! shopt -oq posix; then
  11.   if [ -f /usr/share/bash-completion/bash_completion ]; then
  12.     . /usr/share/bash-completion/bash_completion
  13.   elif [ -f /etc/bash_completion ]; then
  14.     . /etc/bash_completion
  15.   fi
  16. fi
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment