Re: tab completion being overenthusiastic
On Sat, Sep 07, 2024 at 09:58:32 -0400, eben@gmx.us wrote:
> 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?
It's not a standard file.
By the way, there's a trick you can use to find out where shell variables
are being defined:
PS4='+ $BASH_SOURCE:$FUNCNAME:$LINENO:' bash -ilxc : 2>&1 | grep CDPATH
The -il options run an interactive login shell. If you need to check an
interactive non-login shell instead, just change the options to -ixc.
This won't work as root, because PS4 from the environment is suppressed
for security reasons when running bash as root.
Reply to: