Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: tab completion bug?



On Thu, 23 Oct 2014 08:15:55 -0400
TJ Luoma <luomat@xxxxxxxxx> wrote:
> I have these lines in my ~/.zshrc:
> 
>          db="${HOME}/Dropbox"
> 
>          sites="$db/sites"
> 
> If I type
> 
>          cd $db/
> 
> and press 'tab' I get a list of all of the directories in $db
> 
> BUT if I type
> 
>          cd $sites/
> 
> and press 'tab' I get
> 
>          cd $sites//Users/luomat/Dropbox/Sites/

What does

echo $sites

output?  If it looks sane, does

[[ -d $sites ]] || echo yes

say "yes"?

pws



Messages sorted by: Reverse Date, Date, Thread, Author