ohmyzsh / ohmyzsh

🙃 A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.

Home Page:https://ohmyz.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rsync-move has not delete directory.

jeffery9 opened this issue · comments

alias rsync-move="rsync -avz --progress -h --remove-source-files"

need to delete directory also.

You could change the alias to include a find which can search and delete the empty directories. The first parameter of the is the source directory and the second the destination.

rsync -avz --progress -h --remove-source-files SOURCE DESTINATION && find SOURCE -type d -empty -delete

You can also redefine the alias in your .zshrc file to include the -m argument, as per [1].

Changing the alias at this point is not feasible, as it constitutes a breaking change.