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

zsh has `= expansion`:

> If a word begins with an unquoted `=' and the EQUALS option is set, the remainder of the word is taken as the name of a command. If a command exists by that name, the word is replaced by the full pathname of the command.

To edit the source of `myscript` I can then use

  vim =myscript



That's really neat! I'd never heard of that. I think you just saved my future self many many keystrokes.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: