Hacker News new | past | comments | ask | show | jobs | submit login

Using echo is the wrong way. What you do is ‘CTRL-x *’. That will expand any glob right there on the command line.



Brace expansion isn't a glob, unfortunately. Did you try it?


I didn't know the `CTRL-x * ` expansion; it appears to work in zsh for brace expansion:

  $ touch asdf-{gh,jk}-l
  # CTRL-x *
  $ touch asdf-gh-l asdf-jk-l


In zsh you can use tab to expand globs/braces/variables as well.


I didn't know about that.

I tried control-x escape, that only does variable expansion (and it appears to expand aliases too)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: