by lopsidedBrain · 6y ago · 0 comments
mv foo-<tab>
mv foo-bar-baz foo-<tab>
mv foo-bar-baz foo-bar-baz
Now I can edit the second part pretty quickly.Downside: you have to at least type `foo-` twice.
Upside: command line history still has the full command.
Also, if you accidentally tab-complete the same file for output and input, depending on how clever the program is, you may end up deleting the source file.
i don't alias mv to mv -i either, to avoid getting used to the idea that just mv is going to ask me, because i might work on a server where the alias is not set.
gcc foo.c -o foo.c
far too many times :(There nothing in between.
mv foo-bar <alt>-m
It’ll repeat foo-bar. It’s very useful. I miss it when I’m using Fish or Bash.