Hey!
This commit adds the CPP command to copy files. For the sake of saving a lot of lines, I have made CPP use much of the already existing MVR command's case statement. If I were to rewrite the command as a new case statement, it would be almost 100% identical to the MVR command one. So, the case statement will now check if you chose MVR or CPP and accordingly use mv or cp based on that decision (stored in the $cmd. (cp or mv) and cmdname (copied or moved) vaiables). In addition, I changed "type rename" to "type new name" in the prompt as I felt this makes more sense, especially using it for both MVR and CPP.
Thank you.
Hey! This commit adds the
CPP
command to copy files. For the sake of saving a lot of lines, I have made CPP use much of the already existingMVR
command's case statement. If I were to rewrite the command as a new case statement, it would be almost 100% identical to the MVR command one. So, the case statement will now check if you chose MVR or CPP and accordingly usemv
orcp
based on that decision (stored in the$cmd
. (cp or mv) andcmdname
(copied or moved) vaiables). In addition, I changed "type rename" to "type new name" in the prompt as I felt this makes more sense, especially using it for both MVR and CPP. Thank you.