diff options
author | Oliver Kiddle <opk@zsh.org> | 2016-08-03 17:29:41 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2016-08-03 17:29:41 +0200 |
commit | 81f229a03770b9736a1daf499ba56d8d2340c2aa (patch) | |
tree | 00a6ee46999ac9aa3d6e574e5a385d4a66d6a9c0 /Completion/Unix | |
parent | 7d282fa588ba9901ef71177d85c731938cdce639 (diff) | |
download | zsh-81f229a03770b9736a1daf499ba56d8d2340c2aa.tar.gz zsh-81f229a03770b9736a1daf499ba56d8d2340c2aa.tar.xz zsh-81f229a03770b9736a1daf499ba56d8d2340c2aa.zip |
38989: minor completion updates for FreeBSD
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_cp | 3 | ||||
-rw-r--r-- | Completion/Unix/Command/_getent | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_cp b/Completion/Unix/Command/_cp index 7087b4e6c..5c3f37983 100644 --- a/Completion/Unix/Command/_cp +++ b/Completion/Unix/Command/_cp @@ -57,7 +57,8 @@ else '(dragonfly|freebsd)*' '-l[link files instead of copying]' \ '(darwin|dragonfly|freebsd|netbsd)*' '-v[show file names as they are copied]' \ 'darwin*' "-X[don't copy extended attributes or resource forks]" \ - '(dragonfly|freebsd)*' "-x[don't traverse file systems]" + '(dragonfly|freebsd)*' "-x[don't traverse file systems]" \ + 'freebsd<10->.*' '-s[make symbolic links instead of copies of non-directories]' do [[ $OSTYPE = $~pattern ]] && args+=( $arg ) done diff --git a/Completion/Unix/Command/_getent b/Completion/Unix/Command/_getent index b9aff6642..7f4e8bc9c 100644 --- a/Completion/Unix/Command/_getent +++ b/Completion/Unix/Command/_getent @@ -29,6 +29,8 @@ case $state in databases=( "${(@)${(@f)$(_call_program databases $words[1] --help \ 2>/dev/null)}[(r)Supported*,-1]}" ) databases=( "${=${(@)databases[2,${(@)databases[(i)]}-1]}}" ) + elif [[ $OSTYPE = freebsd* ]]; then + databases=( ${=${(f)"$(_call_program databases $words[1] 2>&1)"}[-1]} ) else databases=( passwd group hosts ipnodes services protocols ethers networks netmasks ) fi |