Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 3
    Which shell, configured how? Commented May 20, 2022 at 22:47
  • 2
    zsh would rotate between the matching ones, but I don't think Bash can do that. So, .env<tab> would work in Bash if there's only that one filename starting like that. But if e.g. .env also exists, then the completion doesn't really help. Commented May 21, 2022 at 8:36
  • With BASH, if you press TAB twice in a row, it shows all the completions, but it doesn't escape them correctly (I tried with a newline in the filename) Commented May 21, 2022 at 14:08
  • @CSM, it does autofill correctly, though, if it's the only matching filename. But you can't copypaste from the listing. Commented May 21, 2022 at 14:38
  • For bash use "'.en and then TAB. The file name should be completed correctly. Commented May 21, 2022 at 17:51