File: _backup

package info (click to toggle)
yash 2.60-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,152 kB
  • sloc: ansic: 34,578; makefile: 851; sh: 808; sed: 16
file content (15 lines) | stat: -rw-r--r-- 516 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# (C) 2010 magicant

# This file contains a function that completes the argument to the --backup
# option of the cp, ln, and mv commands.


function completion//completebackup { #>>#
        complete -P "$PREFIX" -D "don't make backups" none off
        complete -P "$PREFIX" -D "make numbered backups" numbered t
        complete -P "$PREFIX" -D "make backups according to existing ones" existing nil
        complete -P "$PREFIX" -D "make simple backups" simple never
} #<<#


# vim: set ft=sh ts=8 sts=8 sw=8 et: