News for hackers. Stuff that matters.
Re:Writing Your Own Simple Tab-Completions for Bash and Zsh by kevindamm on Sunday August 10, 2025 @09:09AM (#44854962)
If you get into this position what you can do is `ls <tab-completed-path>` or other command to put the filename in the previous command's argument, then you can access it via !$ or !^ (or use !!:1 or your shell's notation for indexing an argument that was already in the previous command).

It's not a fix but it'll save a little time sometimes.

Re:Writing Your Own Simple Tab-Completions for Bash and Zsh by minhm on Sunday August 10, 2025 @12:27PM (#44856274)
An alternative way would be pressing M-. (assuming one is using Readline for typing text in the shell, which is the default for my bash shell).