first commit
This commit is contained in:
13
etc_org/bash_completion.d/cryptdisks
Normal file
13
etc_org/bash_completion.d/cryptdisks
Normal file
@ -0,0 +1,13 @@
|
||||
# cryptdisks_{start,stop} completion by first row of crypttab
|
||||
#
|
||||
# Copyright 2013 Claudius Hubig <cl_crds@chubig.net>, 2-clause BSD
|
||||
|
||||
_cryptdisks() {
|
||||
local tf;
|
||||
tf=${TABFILE-"/etc/crypttab"};
|
||||
COMPREPLY=($(egrep -v "^[[:space:]]*(#|$)" "${tf}" | egrep -o "^${COMP_WORDS[COMP_CWORD]}[^[:space:]]*"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
complete -F _cryptdisks cryptdisks_start;
|
||||
complete -F _cryptdisks cryptdisks_stop;
|
Reference in New Issue
Block a user