mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-27 19:03:04 +01: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 parent
aa6e932b06
commit
358ac6a141
2 files changed
+2
-2
No files matched your search
@@ -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