ohmyzsh/plugins/cp/cp.plugin.zsh
Xuehai Pan 358ac6a141
fix(cp): add unique suffix to rsync backup directory for each user (#10170)
* fix(cp): add unique suffix to rsync backup directory for each user

* fix(cp): use `USERNAME` rather than `USER`
2021-09-09 22:18:09 +02:00

5 lines
118 B
Bash

cpv() {
rsync -pogbr -hhh --backup-dir="/tmp/rsync-${USERNAME}" -e /dev/null --progress "$@"
}
compdef _files cpv