cp.plugin.zsh 541 B

1234567891011121314
  1. #Show progress while file is copying
  2. # Rsync options are:
  3. # -p - preserve permissions
  4. # -o - preserve owner
  5. # -g - preserve group
  6. # -h - output in human-readable format
  7. # --progress - display progress
  8. # -b - instead of just overwriting an existing file, save the original
  9. # --backup-dir=/tmp/rsync - move backup copies to "/tmp/rsync"
  10. # -e /dev/null - only work on local files
  11. # -- - everything after this is an argument, even if it looks like an option
  12. alias cpv="rsync -poghb --backup-dir=/tmp/rsync -e /dev/null --progress --"