Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Interactively editing the filename is possible with this even simpler solution:

  mv foo.txt 
  ↑
  Alt-.
This works in bash and any shell using readline. Explanation: https://news.ycombinator.com/item?id=22863402


Great tip thanks!

Similarly, readline's vi mode makes interactive editing in place easy




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: