mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-11 02:39:50 +00:00
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`
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
cpv() {
|
||||
rsync -pogbr -hhh --backup-dir=/tmp/rsync -e /dev/null --progress "$@"
|
||||
rsync -pogbr -hhh --backup-dir="/tmp/rsync-${USERNAME}" -e /dev/null --progress "$@"
|
||||
}
|
||||
compdef _files cpv
|
||||
|
||||
Reference in New Issue
Block a user