marckhouzam / tcsh-completion

Enhanced sub-command completion in the tcsh shell
Apache License 2.0
10 stars 2 forks source link

/etc/bash_completion.d/yum-utils.bash: line 2: /yum: No such file or directory #1

Open esabol opened 6 years ago

esabol commented 6 years ago

On RHEL/CentOS 7.4, after following the directions for installation, I get this error whenever I try to complete a command:

/etc/bash_completion.d/yum-utils.bash: line 2: /yum: No such file or directory

Clearly, this is a bug in /etc/bash_completion.d/yum-utils.bash, which is outside your purview, but I was wondering if there's any workaround I could employ? I tried commenting the yum-related lines in ~/.tcsh-completion.tcsh, but that didn't help.

esabol commented 6 years ago

Well, here's what I ended up doing:

I created a bash-completion.pc that looks like this:

prefix=/usr
completionsdir=/usr/share/bash-completion/completions
helpersdir=/usr/share/bash-completion/helpers

Name: bash-completion
Description: programmable completion for the bash shell
URL: http://bash-completion.alioth.debian.org/
Version: 2.1

And then I setenv PKG_CONFIG_PATH /usr/lib/pkgconfig:/path/to/location/of/that/pc/file. That eliminated this error. I wonder if there's a better solution though? Thanks!