File: ssh-add

package info (click to toggle)
yash 2.50-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,036 kB
  • sloc: ansic: 33,211; makefile: 839; sh: 477; sed: 16
file content (38 lines) | stat: -rw-r--r-- 870 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# (C) 2011-2013 magicant

# Completion script for the "ssh-add" command.
# Supports OpenSSH 6.2.

function completion/ssh-add {

	typeset OPTIONS ARGOPT PREFIX
	OPTIONS=( #>#
	"c; confirm when authenticating with the identities being added"
	"D; delete all identities"
	"d; delete identities"
	"e:; remove keys from the specified PKCS#11 library"
	"k; don't load certificates"
	"L; print the public keys of the identities in the agent"
	"l; print the fingerprints of the identities in the agent"
	"s:; add keys from the specified PKCS#11 library"
	"t:; specify the lifetime of identities being added in seconds"
	"X; unlock the agent"
	"x; lock the agent"
	) #<#

	command -f completion//parseoptions
	case $ARGOPT in
	(-)
		command -f completion//completeoptions
		;;
	([est])
		;;
	(*)
		complete -P "$PREFIX" -f
		;;
	esac

}


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