diff options
author | Eric Cook <llua@gmx.com> | 2015-05-06 22:36:48 -0400 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-05-07 09:47:48 +0100 |
commit | 13c6d38e4b989a7185a161d3978dd5cfd3da143f (patch) | |
tree | 9be0b09768443bd50bb6345944d9f01c766b909c /Completion/BSD/Command/_bsdinstall | |
parent | aa34d2f1652f31940534864c1a8ef5404c004638 (diff) | |
download | zsh-13c6d38e4b989a7185a161d3978dd5cfd3da143f.tar.gz zsh-13c6d38e4b989a7185a161d3978dd5cfd3da143f.tar.xz zsh-13c6d38e4b989a7185a161d3978dd5cfd3da143f.zip |
35052: new BSD completions
Diffstat (limited to 'Completion/BSD/Command/_bsdinstall')
-rw-r--r-- | Completion/BSD/Command/_bsdinstall | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Completion/BSD/Command/_bsdinstall b/Completion/BSD/Command/_bsdinstall new file mode 100644 index 000000000..e0589d720 --- /dev/null +++ b/Completion/BSD/Command/_bsdinstall @@ -0,0 +1,46 @@ +#compdef bsdinstall + +local -a _bsdinstall_targets +_bsdinstall_targets=( + 'auto:standard interactive installation, including disk partitioning' + "entropy:stores a small amount of data from /dev/random in the new system's root" + 'jail:sets up a new chroot system at destination, suitable for use with jail(8)' + 'script:run an installation script' + "keymap:set the keymap and save to the new system's rc.conf" + 'hostname:set the hostname for the new system' + 'netconfig:configure networking' + 'autopart:run the interactive guided disk partitioner' + 'zfsboot:run the interactive/scriptable ZFS partitioner' + 'scriptedpart:non-interactive partition setup' + 'mount:mount the file systems previously configured by autopart, partedit, or scriptedpart' + 'distfetch:fetches the distributions in DISTRIBUTIONS to BSDINSTALL_DISTDIR from BSDINSTALL_DISTSITE' + 'checksum:verifies the checksums of the distributions listed in DISTRIBUTIONS' + 'distextract:extracts the distributions listed in DISTRIBUTIONS into BSDINSTALL_CHROOT' + "rootpass:interactively invokes passwd(1) in the new system to set the root user's password" + 'adduser:interactively invokes adduser(8) in the new system' + 'time:interactively sets the time, date, and time zone of the new system' + 'services:queries the user for the system daemons to begin at system startup' + 'config:installs the configuration files destined for the new system' +) + +local context state state_descr line +typeset -A val_args +_arguments -A '-*' : \ + '-D[installation log file]: : _files' \ + '1: :->targets' \ + '*: :->args' + +case $state in + targets) _describe targets _bsdinstall_targets;; + args) + shift words + [[ $words[1] == '-D' ]] && shift 2 words + + case $words[1] in + jail) _files -/;; + script) _files;; + scriptedpart) _message "$words[1] parameters";; + *) _message "nothing to complete"; return 1;; + esac + ;; +esac |