Re: tab completion being overenthusiastic

2024-09-09 Thread David Wright
On Sat 07 Sep 2024 at 09:58:32 (-0400), e...@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? If you mean the file itself, you might try stat ~/.bash-vars and looking at the

Re: tab completion being overenthusiastic

2024-09-07 Thread tomas
On Sat, Sep 07, 2024 at 10:07:00AM -0400, Greg Wooledge wrote: [...] > 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 Nifty! Thanks for this one. Cheers -- t signa

Re: tab completion being overenthusiastic

2024-09-07 Thread eben
On 9/7/24 10:07, Greg Wooledge wrote: 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 no

Re: tab completion being overenthusiastic

2024-09-07 Thread Greg Wooledge
On Sat, Sep 07, 2024 at 09:58:32 -0400, e...@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 wh

Re: tab completion being overenthusiastic

2024-09-07 Thread eben
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 ", the shell offers 178 possibilities. If I restrict it to an initial letter and hit

Re: tab completion being overenthusiastic

2024-09-07 Thread eben
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 ", the shell offers 178 possibilities. If I restrict it to an initial letter and hit once, I think the spurious offerings

Re: tab completion being overenthusiastic

2024-09-07 Thread Greg Wooledge
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 > ", the shell offers 178 possibilities. If I restrict it to an > initial letter and hit once, I think the spurious offerings are from > $HOME. How can I make i