taylor-peterson / etc

config files for taylor-peterson
MIT License
0 stars 0 forks source link

Make mv/mkdir/etc automatically create folders as needed #1

Open taylor-peterson opened 8 years ago

taylor-peterson commented 8 years ago

It's nice to be able to move a file to a new location without creating said location manually first. Similarly, if I want to make a directory hierarchy, I don't want to have to make each directory individually.

This change will involve creating an alias for these (and other?) commands which invokes the correct options to get this behavior.

messenger-sean commented 8 years ago

alias mkdir="mkdir -pv"

messenger-sean commented 8 years ago

Also, consider that you may not want to always have mv/cp/cd make directories. Perhaps aliasing/bash scripting something else similar, such as mvm, cpm, and cdm.