diff --git a/nav.go b/nav.go index 17c0e70..77f9c90 100644 --- a/nav.go +++ b/nav.go @@ -387,15 +387,20 @@ func (nav *Nav) paste() error { dir := nav.currDir() - args := append(list, dir.path) + var args []string var sh string if keep { sh = "cp" + args = append(args, "-r") } else { sh = "mv" } + args = append(args, "--backup=numbered") + args = append(args, list...) + args = append(args, dir.path) + cmd := exec.Command(sh, args...) if err := cmd.Run(); err != nil {