[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 7a9aaaf8f313694354c641689a1bd66262d53159
Ville Skyttä
ville.skytta at iki.fi
Sat Apr 18 10:22:25 UTC 2009
The following commit has been merged in the master branch:
commit 7a9aaaf8f313694354c641689a1bd66262d53159
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Apr 18 13:21:53 2009 +0300
Add more -d/--device completions.
diff --git a/to_review/smartctl b/to_review/smartctl
index 84825a3..6ca6c1b 100644
--- a/to_review/smartctl
+++ b/to_review/smartctl
@@ -10,7 +10,11 @@ _smartctl_quietmode()
}
_smartctl_device()
{
- COMPREPLY=( $( compgen -W 'ata scsi 3ware' -- $cur ) )
+ local i opts='ata scsi sat marvell hpt cciss'
+ for (( i=0; i <= 31; i++ )) ; do
+ opts="$opts 3ware,$i"
+ done
+ COMPREPLY=( $( compgen -W "$opts" -- $cur ) )
}
_smartctl_tolerance()
{
--
bash-completion
More information about the Bash-completion-commits
mailing list