On 9/7/24 09:37, e...@gmx.us wrote:
On 9/7/24 09:26, Greg Wooledge wrote:
On Sat, Sep 07, 2024 at 08:56:08 -0400, Eben King wrote:
Hi. I have bash 5.2.15(1). When I cd into an empty directory, and
type "cd <tab><tab>", the shell offers 178 possibilities. If I
restrict it to an initial letter and hit <tab> once, I think the
spurious offerings are from $HOME. How can I make it not do that and
only offer me things I ask for?
Do you perhaps have the CDPATH variable set? That might affect tab
completion for the cd command.
eben@cerberus:~$ echo "$CDPATH" :~:/
0
eben@cerberus:~$ grep CDPATH /etc/profile /etc/profile.d/* ~/.profile
~/.bash_profile > 1
eben@cerberus:~$
In fact I do. Good catch. Any idea where it could be set, other than
the places I looked?
Got it. It was in ~/.bash-vars which was sourced from ~/.bash_profile . Is
that a standard thing, or just some "brilliant" idea I had once upon a time?
--
Only two things are infinite, the universe and human stupidity,
and I'm not sure about the former." -- Albert Einstein