File: _backup

package info (click to toggle)
yash 2.43-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,184 kB
  • ctags: 3,159
  • sloc: ansic: 31,766; makefile: 812; sh: 407; sed: 16
file content (15 lines) | stat: -rw-r--r-- 490 bytes parent folder | download | duplicates (6)
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 noet: