my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
748 B

3 years ago
  1. # cp plugin
  2. This plugin defines a `cpv` function that uses `rsync` so that you
  3. get the features and security of this command.
  4. To enable, add `cp` to your `plugins` array in your zshrc file:
  5. ```zsh
  6. plugins=(... cp)
  7. ```
  8. ## Description
  9. The enabled options for rsync are:
  10. - `-p`: preserves permissions.
  11. - `-o`: preserves owner.
  12. * `-g`: preserves group.
  13. * `-b`: make a backup of the original file instead of overwriting it, if it exists.
  14. * `-r`: recurse directories.
  15. * `-hhh`: outputs numbers in human-readable format, in units of 1024 (K, M, G, T).
  16. * `--backup-dir="/tmp/rsync-$USERNAME"`: move backup copies to "/tmp/rsync-$USERNAME".
  17. * `-e /dev/null`: only work on local files (disable remote shells).
  18. * `--progress`: display progress.