You are not logged in.

#1 2023-10-07 05:29:11

__prateek
Member
Registered: 2023-10-07
Posts: 2

bash-completion not working for arch linux

Being new to arch, I am unable to enable have bash completion in terminal (the autocompletion/suggestion you get when pressing tab/double-tab).

I tried installing the bash completion package using the following command.

sudo pacman -S bash-completion

The following warnings pop-up:

warning: could not get file information for usr/share/bash-completion/  
warning: could not get file information for usr/share/bash-completion/bash_completion   
warning: could not get file information for usr/share/bash-completion/completions/  
warning: could not get file information for usr/share/bash-completion/completions/2to3  
warning: could not get file information for usr/share/bash-completion/completions/7z  
warning: could not get file information for usr/share/bash-completion/completions/7za  
.  
.  
.  
warning: could not get file information for usr/share/bash-completion/helpers/python

I also sourced /usr/share/bash-completion/bash-completion in my bashrc, but still no success.

Last edited by __prateek (2023-10-07 06:11:32)

Offline

#2 2023-10-07 06:01:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,082

Re: bash-completion not working for arch linux

Please use code tags, https://bbs.archlinux.org/help.php#bbcode - edit your posts in this regard.

pacman wrote:

warning: could not get file information for usr/share/bash-completion/bash_completion

stat /usr/share/bash-completion
pacman -Qikk bash

I also sourced `/usr/share/bash-completion/bash-completion` in my *bashrc*, but still no success.

"bash_completion" and that's not necessary, the problem is the error you get from pacman which I could only explain w/ a NoExtract rule - or a completely shredded installation

sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files'

Offline

Board footer

Powered by FluxBB