Re:A terminal file manager written in bash
by JNRowe on Wednesday October 24, 2018 @01:00PM
(#18294220)
If you're a zsh user you can also use the other zshparam(1) stuff too. Like "mv file.ext{,(:r)}" to perform "mv file.ext file", or :l to lowercase a filename, or any number of other sometimes useful or often pointless things ;) I've used :l a number of times, but :s for substition is probably the most useful in general.
Re:A terminal file manager written in bash
by em-bee on Wednesday October 24, 2018 @01:34PM
(#18294556)
thanks, but that takes more conscious effort to get right that is worth it for me. i tend to just copy the filename twice and then edit the second version to the target.
but now i'll become good friends with qmv
greetings, eMBee.
e.g.
which expands to: So use tab completion to get your path then go back and stick your curly brackets into it as needed. Oh and it works for things like git branch renaming or anything else you do in the terminal.