Post #1384985
2025-12-17 13:18 UTC
For interactive editing, the keybind alt+. inserts the last argument from the previous command. Using this instead of $_ has the potential to make your shell history a little more explicit. (vim $_ isn’t as likely to work a few commands later, but vim actual_file.sh might)
Replies (2)
-
@claymore@pawb.social 2025-12-17 14:05
You can also press alt+. multiple times to cycle through all recent arguments
-
@InFerNo@lemmy.ml 2025-12-17 17:41
Yes, definitely and I do run into that when I search my history