Files
dotfiles-and-setup/src_files/.local/bin/mvd
2025-10-02 19:35:45 -05:00

7 lines
204 B
Bash
Executable File

#!/bin/zsh
# wrapper for mv; for the given target, create any dirs which do not already exist
mvd_target_dir=$(dirname "${@: -1}")
[[ ! -d "$mvd_target_dir" ]] && mkdir -p "$mvd_target_dir"
exec mv "$@"