A POSIX shell wrapper for "cp -i -a", making use of "diff".
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


cpi and mvi

(C) Martin Väth (martin at mvath.de). This project is under the BSD license.

A POSIX shell wrapper for cp -i -a and mv -i, making use of diff

This is a somewhat verbose frontend for cp -i -a and mv -i: For each file you see the differences before you confirm/reject the copying/moving.

You get more detailed instructions by calling

  • cpi -h
  • mvi -h


The cpi variant requires that your cp command supports the non-POSIX options

  • -a
  • -d
  • --preserve=timestamps


For installation. just copy the content of bin/ into your $PATH. To obtain support for zsh completion, copy the content of zsh/ to your zsh's $fpath.

For Gentoo, there is an ebuild in the mv overlay (available over layman).