From 0b6e0648504382f68dbfc547bd4392a3d85e8513 Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Wed, 23 Nov 2022 13:23:19 +0900 Subject: [PATCH] Update links --- .editorconfig | 2 +- README.md | 8 +- src/_archlinux-java | 2 +- src/_artisan | 2 +- src/_atach | 2 +- src/_bitcoin-cli | 2 +- src/_bower | 4 +- src/_caffeinate | 2 +- src/_cap | 2 +- src/_cask | 4 +- src/_cf | 2 +- src/_choc | 4 +- src/_console | 2 +- src/_cppcheck | 2 +- src/_dad | 2 +- src/_dget | 2 +- src/_diana | 2 +- src/_drush | 4 +- src/_ecdsautil | 2 +- src/_emulator | 2 +- src/_exportfs | 2 +- src/_fab | 4 +- src/_fail2ban-client | 2 +- src/_ffind | 2 +- src/_fleetctl | 2 +- src/_gas | 2 +- src/_ghc | 4 +- src/_git-flow | 2 +- src/_git-wtf | 2 +- src/_golang | 8 +- src/_google | 2 +- src/_gpgconf | 2 +- src/_gtk-launch | 4 +- src/_hledger | 4 +- src/_homestead | 2 +- src/_httpie | 2 +- src/_include-what-you-use | 2 +- src/_jmeter | 2 +- src/_jmeter-plugins | 2 +- src/_jonas | 2 +- src/_jrnl | 2 +- src/_kitchen | 4 +- src/_knife | 4 +- src/_middleman | 2 +- src/_mina | 2 +- src/_mix | 2 +- src/_mssh | 4 +- src/_mussh | 4 +- src/_nanoc | 2 +- src/_node | 2 +- src/_openssl | 2 +- src/_openvpn3 | 2 +- src/_optirun | 2 +- src/_opustools | 2 +- src/_patool | 2 +- src/_periscope | 2 +- src/_pgsql_utils | 6 +- src/_phing | 4 +- src/_pixz | 2 +- src/_pkcon | 2 +- src/_play | 2 +- src/_port | 2 +- src/_protoc | 2 +- src/_qmk | 2 +- src/_rails | 4 +- src/_ralio | 2 +- src/_redis-cli | 6 +- src/_rfkill | 4 +- src/_rmlint | 2 +- src/_rslsync | 2 +- src/_rspec | 4 +- src/_rsvm | 2 +- src/_sbt | 4 +- src/_scala | 4 +- src/_scrub | 4 +- src/_setcap | 2 +- src/_setup.py | 14 +-- src/_shellcheck | 2 +- src/_srm | 2 +- src/_stack | 2 +- src/_supervisorctl | 4 +- src/_thor | 2 +- src/_ufw | 2 +- src/_virtualbox | 2 +- src/_vnstat | 2 +- src/_wemux | 2 +- src/_xinput | 2 +- src/_xsel | 4 +- src/_zcash-cli | 2 +- zsh-completions-howto.org | 174 +++++++++++++++++++------------------- 90 files changed, 213 insertions(+), 213 deletions(-) diff --git a/.editorconfig b/.editorconfig index e762a90..3c6877c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,5 +1,5 @@ ; This file is for unifying the coding style for different editors and IDEs. -; More information at http://EditorConfig.org +; More information at https://editorconfig.org/ root = true diff --git a/README.md b/README.md index ba030cc..e1a7e56 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ zsh-completions ![GitHub release](https://img.shields.io/github/release/zsh-users/zsh-completions.svg) ![GitHub contributors](https://img.shields.io/github/contributors/zsh-users/zsh-completions.svg) [![IRC](https://img.shields.io/badge/IRC-%23zsh--completions-yellow.svg)](irc://irc.freenode.net/#zsh-completions) [![Gitter](https://badges.gitter.im/zsh-users/zsh-completions.svg)](https://gitter.im/zsh-users/zsh-completions?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) ============= -**Additional completion definitions for [Zsh](http://www.zsh.org).** +**Additional completion definitions for [Zsh](https://www.zsh.org/).** *This projects aims at gathering/developing new completion scripts that are not available in Zsh yet. The scripts may be contributed to the Zsh project when stable enough.* @@ -16,12 +16,12 @@ zsh-completions ![GitHub release](https://img.shields.io/github/release/zsh-user | Fedora / CentOS / RHEL / Scientific Linux | [zsh-completions OBS repository](https://software.opensuse.org/download.html?project=shells%3Azsh-users%3Azsh-completions&package=zsh-completions) | | OpenSUSE / SLE | [zsh-completions OBS repository](https://software.opensuse.org/download.html?project=shells%3Azsh-users%3Azsh-completions&package=zsh-completions) | | Arch Linux / Manjaro / Antergos / Hyperbola | [zsh-completions](https://www.archlinux.org/packages/zsh-completions), [zsh-completions-git](https://aur.archlinux.org/packages/zsh-completions-git) | -| Gentoo / Funtoo | [app-shells/zsh-completions](http://packages.gentoo.org/package/app-shells/zsh-completions) | +| Gentoo / Funtoo | [app-shells/zsh-completions](https://packages.gentoo.org/packages/app-shells/zsh-completions) | | NixOS | [zsh-completions](https://github.com/NixOS/nixpkgs/blob/master/pkgs/shells/zsh/zsh-completions/default.nix) | | Void Linux | [zsh-completions](https://github.com/void-linux/void-packages/blob/master/srcpkgs/zsh-completions/template) | | Slackware | [Slackbuilds](https://slackbuilds.org/repository/14.2/system/zsh-completions/) | | macOS | [homebrew](https://github.com/Homebrew/homebrew-core/blob/master/Formula/zsh-completions.rb), [MacPorts](https://github.com/macports/macports-ports/blob/master/sysutils/zsh-completions/Portfile) | -| NetBSD | [pkgsrc](http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/shells/zsh-completions/README.html) | +| NetBSD | [pkgsrc](https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/shells/zsh-completions/README.html) | | FreeBSD | [shells/zsh-completions](https://www.freshports.org/shells/zsh-completions) | @@ -31,7 +31,7 @@ zsh-completions ![GitHub release](https://img.shields.io/github/release/zsh-user Add `antigen bundle zsh-users/zsh-completions` to your `~/.zshrc`. -#### [oh-my-zsh](http://github.com/robbyrussell/oh-my-zsh) +#### [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh) * Clone the repository inside your oh-my-zsh repo: diff --git a/src/_archlinux-java b/src/_archlinux-java index a497f76..49fe903 100644 --- a/src/_archlinux-java +++ b/src/_archlinux-java @@ -1,6 +1,6 @@ #compdef archlinux-java # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_artisan b/src/_artisan index 1104a20..8f9f069 100644 --- a/src/_artisan +++ b/src/_artisan @@ -1,6 +1,6 @@ #compdef artisan # ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_atach b/src/_atach index 5da9633..5e88dab 100644 --- a/src/_atach +++ b/src/_atach @@ -1,6 +1,6 @@ #compdef atach # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/src/_bitcoin-cli b/src/_bitcoin-cli index f953eb4..ef10c7d 100644 --- a/src/_bitcoin-cli +++ b/src/_bitcoin-cli @@ -1,6 +1,6 @@ #compdef bitcoin-cli # ------------------------------------------------------------------------------ -# Copyright (c) 2017 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_bower b/src/_bower index 69197ea..75e4342 100644 --- a/src/_bower +++ b/src/_bower @@ -1,6 +1,6 @@ #compdef bower # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for Bower (http://bower.io). +# Completion script for Bower (https://bower.io). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_caffeinate b/src/_caffeinate index afcd569..e2b7ac1 100644 --- a/src/_caffeinate +++ b/src/_caffeinate @@ -1,6 +1,6 @@ #compdef caffeinate # ------------------------------------------------------------------------------ -# Copyright (c) 2017 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_cap b/src/_cap index ef2abee..6f6fb67 100644 --- a/src/_cap +++ b/src/_cap @@ -1,6 +1,6 @@ #compdef cap # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_cask b/src/_cask index b2ba82a..5fd1e1c 100644 --- a/src/_cask +++ b/src/_cask @@ -1,6 +1,6 @@ #compdef cask # ------------------------------------------------------------------------------ -# Copyright (c) 2014 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2014 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for cask (http://cask.readthedocs.org) +# Completion script for cask (https://cask.readthedocs.io) # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_cf b/src/_cf index 398a912..3f0ae19 100644 --- a/src/_cf +++ b/src/_cf @@ -7,7 +7,7 @@ # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/src/_choc b/src/_choc index 3ac8c59..8d79af3 100644 --- a/src/_choc +++ b/src/_choc @@ -1,6 +1,6 @@ #compdef choc # ------------------------------------------------------------------------------ -# Copyright (c) 2012 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2012 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for choc (http://chocolatapp.com) +# Completion script for choc (https://chocolatapp.com/) # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_console b/src/_console index 7e5b454..2d11e43 100644 --- a/src/_console +++ b/src/_console @@ -1,6 +1,6 @@ #compdef console # ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_cppcheck b/src/_cppcheck index 2006828..019a1a7 100644 --- a/src/_cppcheck +++ b/src/_cppcheck @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for cppcheck -- a tool for static C/C++ code analysis (http://cppcheck.sourceforge.net) +# Completion script for cppcheck -- a tool for static C/C++ code analysis (https://cppcheck.sourceforge.io/) # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_dad b/src/_dad index 9ceee06..40d523c 100644 --- a/src/_dad +++ b/src/_dad @@ -1,6 +1,6 @@ #compdef dad # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_dget b/src/_dget index d540121..af16444 100644 --- a/src/_dget +++ b/src/_dget @@ -1,6 +1,6 @@ #compdef dget # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_diana b/src/_diana index ef51a0d..b4e7c0e 100644 --- a/src/_diana +++ b/src/_diana @@ -1,6 +1,6 @@ #compdef diana # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_drush b/src/_drush index 83c0b04..d52921f 100644 --- a/src/_drush +++ b/src/_drush @@ -1,6 +1,6 @@ #compdef drush # ------------------------------------------------------------------------------ -# Copyright (c) 2014 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2014 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for Drush (http://drush.ws). +# Completion script for Drush (https://drushcommands.com/). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_ecdsautil b/src/_ecdsautil index 5d0a6f3..2724a0b 100644 --- a/src/_ecdsautil +++ b/src/_ecdsautil @@ -3,7 +3,7 @@ # Description # ----------- # -# Completion script for ecdsaultils v0.4.0 (https://github.com/tcatm/ecdsautils) +# Completion script for ecdsaultils v0.4.0 (https://github.com/freifunk-gluon/ecdsautils) # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_emulator b/src/_emulator index 265dccd..18ad13b 100644 --- a/src/_emulator +++ b/src/_emulator @@ -4,7 +4,7 @@ # ----------- # # Completion script for emulator (Android Emulator) 12.0 -# (http://developer.android.com/guide/developing/tools/emulator.html). +# (https://developer.android.com/studio/run/emulator-command). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_exportfs b/src/_exportfs index 4a6cdb6..1265e32 100644 --- a/src/_exportfs +++ b/src/_exportfs @@ -1,6 +1,6 @@ #compdef exportfs # ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_fab b/src/_fab index ba60bb6..232314d 100644 --- a/src/_fab +++ b/src/_fab @@ -1,6 +1,6 @@ #compdef fab # ------------------------------------------------------------------------------ -# Copyright (c) 2015 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2015 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for Fabric (http://fabfile.org) +# Completion script for Fabric (https://www.fabfile.org/) # # Source: https://github.com/vhbit/fabric-zsh-autocomplete # diff --git a/src/_fail2ban-client b/src/_fail2ban-client index 1cebd19..df9cef4 100644 --- a/src/_fail2ban-client +++ b/src/_fail2ban-client @@ -1,6 +1,6 @@ #compdef fail2ban-client # ------------------------------------------------------------------------------ -# Copyright (c) 2020 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2020 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining diff --git a/src/_ffind b/src/_ffind index 92cb30b..eb58fb1 100644 --- a/src/_ffind +++ b/src/_ffind @@ -1,6 +1,6 @@ #compdef ffind # ------------------------------------------------------------------------------ -# Copyright (c) 2017 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/src/_fleetctl b/src/_fleetctl index a754e3c..542d7cf 100644 --- a/src/_fleetctl +++ b/src/_fleetctl @@ -1,7 +1,7 @@ #compdef fleetctl # ------------------------------------------------------------------------------ # Copyright (c) 2009-2015 Robby Russell and contributors (see -# https://github.com/robbyrussell/oh-my-zsh/contributors) +# https://github.com/ohmyzsh/ohmyzsh/graphs/contributors) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/src/_gas b/src/_gas index c173507..48f6838 100644 --- a/src/_gas +++ b/src/_gas @@ -1,6 +1,6 @@ #compdef gas # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/src/_ghc b/src/_ghc index 455658f..4d01430 100644 --- a/src/_ghc +++ b/src/_ghc @@ -1,6 +1,6 @@ #compdef ghc ghci ghc-pkg # ------------------------------------------------------------------------------ -# Copyright (c) 2014 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2014 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for ghc (http://www.haskell.org/ghc/) +# Completion script for ghc (https://www.haskell.org/ghc/) # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_git-flow b/src/_git-flow index 427b9b2..55bc63c 100644 --- a/src/_git-flow +++ b/src/_git-flow @@ -24,7 +24,7 @@ # Description # ----------- # -# Completion script for git-flow (http://github.com/nvie/gitflow). +# Completion script for git-flow (https://github.com/nvie/gitflow). # # Source: https://github.com/bobthecow/git-flow-completion # diff --git a/src/_git-wtf b/src/_git-wtf index f3f15db..e0366ad 100644 --- a/src/_git-wtf +++ b/src/_git-wtf @@ -1,6 +1,6 @@ #compdef git-wtf # ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_golang b/src/_golang index abc42bb..1878f7f 100644 --- a/src/_golang +++ b/src/_golang @@ -1,8 +1,8 @@ #compdef go -P -value-,GO*,-default- -P -value-,CGO*,-default- # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # Copyright (c) 2013-2015 Robby Russell and contributors (see -# https://github.com/robbyrussell/oh-my-zsh/contributors) +# https://github.com/ohmyzsh/ohmyzsh/graphs/contributors) # Copyright (c) 2010-2014 Go authors # # Redistribution and use in source and binary forms, with or without @@ -30,7 +30,7 @@ # Description # ----------- # -# Completion script for go 1.19 (http://golang.org). +# Completion script for go 1.19 (https://go.dev/). # # ------------------------------------------------------------------------------ # Authors @@ -39,7 +39,7 @@ # * Mikkel Oscar Lyderik Larsen # * Paul Seyfert # * oh-my-zsh authors: -# https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/golang/golang.plugin.zsh +# https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/golang/golang.plugin.zsh # * Go authors # # ------------------------------------------------------------------------------ diff --git a/src/_google b/src/_google index 8cd6a1b..4a5e567 100644 --- a/src/_google +++ b/src/_google @@ -1,6 +1,6 @@ #compdef google # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_gpgconf b/src/_gpgconf index 7cee03e..30f351a 100644 --- a/src/_gpgconf +++ b/src/_gpgconf @@ -1,5 +1,5 @@ #compdef gpgconf -# Copyright (c) 2021 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2021 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_gtk-launch b/src/_gtk-launch index a2bede4..20b08e0 100644 --- a/src/_gtk-launch +++ b/src/_gtk-launch @@ -1,6 +1,6 @@ #compdef gtk-launch # ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for gtk-launch on gtk+-3.14.8 (http://www.gtk.org/). +# Completion script for gtk-launch on gtk+-3.14.8 (https://www.gtk.org/). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_hledger b/src/_hledger index d6e92a7..c8d975e 100644 --- a/src/_hledger +++ b/src/_hledger @@ -5,7 +5,7 @@ # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -16,7 +16,7 @@ # Description # ----------- # -# Completion script for hledger 1.10 ( http://hledger.org/ ) +# Completion script for hledger 1.10 ( https://hledger.org/ ) # Last updated: 07.08.2018 # # ------------------------------------------------------------------------------ diff --git a/src/_homestead b/src/_homestead index 9dc1c41..22ab86b 100644 --- a/src/_homestead +++ b/src/_homestead @@ -1,6 +1,6 @@ #compdef homestead # ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_httpie b/src/_httpie index 015e5c0..ce6f965 100644 --- a/src/_httpie +++ b/src/_httpie @@ -1,6 +1,6 @@ #compdef http https=http # ------------------------------------------------------------------------------ -# Copyright (c) 2015 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2015 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_include-what-you-use b/src/_include-what-you-use index bb9902c..32bb3ab 100644 --- a/src/_include-what-you-use +++ b/src/_include-what-you-use @@ -9,7 +9,7 @@ # # CERN # -# http://cern.ch +# https://home.web.cern.ch/ # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/src/_jmeter b/src/_jmeter index 27a6086..4d7b01d 100644 --- a/src/_jmeter +++ b/src/_jmeter @@ -3,7 +3,7 @@ # Description # ----------- # -# Completion script for JMeter (http://jakarta.apache.org/jmeter). +# Completion script for JMeter (https://jmeter.apache.org/). # # Status: incomplete # diff --git a/src/_jmeter-plugins b/src/_jmeter-plugins index 3253896..37609b5 100644 --- a/src/_jmeter-plugins +++ b/src/_jmeter-plugins @@ -4,7 +4,7 @@ # ----------- # # Completion script for jmeter-plugins command line tool 0.4.2 -# (http://code.google.com/p/jmeter-plugins). +# (https://jmeter-plugins.org/). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_jonas b/src/_jonas index 2a72b3d..1d93475 100644 --- a/src/_jonas +++ b/src/_jonas @@ -3,7 +3,7 @@ # Description # ----------- # -# Completion script for JOnAS 5.2 (http://jonas.ow2.org). +# Completion script for JOnAS 5.2 (https://jonas.ow2.org/). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_jrnl b/src/_jrnl index e1bc185..9979d37 100644 --- a/src/_jrnl +++ b/src/_jrnl @@ -1,6 +1,6 @@ #compdef jrnl # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_kitchen b/src/_kitchen index 55f59f6..0d93917 100644 --- a/src/_kitchen +++ b/src/_kitchen @@ -1,6 +1,6 @@ #compdef kitchen # ------------------------------------------------------------------------------ -# Copyright (c) 2014 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2014 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for Test Kitchen (http://kitchen.ci/). +# Completion script for Test Kitchen (https://kitchen.ci/). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_knife b/src/_knife index dc839ef..959668e 100644 --- a/src/_knife +++ b/src/_knife @@ -1,7 +1,7 @@ #compdef knife # ------------------------------------------------------------------------------ # Copyright (c) 2009-2015 Robby Russell and contributors (see -# https://github.com/robbyrussell/oh-my-zsh/contributors) +# https://github.com/ohmyzsh/ohmyzsh/graphs/contributors) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -24,7 +24,7 @@ # Description # ----------- # -# Completion script for Chef's knife (http://www.opscode.com/chef). +# Completion script for Chef's knife (https://www.chef.io/). # # Source: https://github.com/ohmyzsh/ohmyzsh/blob/22fed4f/plugins/knife/_knife # diff --git a/src/_middleman b/src/_middleman index 278da39..ba2e98a 100644 --- a/src/_middleman +++ b/src/_middleman @@ -23,7 +23,7 @@ # Description # ----------- # -# Completion script for middleman (http://middlemanapp.com/) +# Completion script for middleman (https://middlemanapp.com/) # Includes commands from middleman-blog and middleman-deploy extensions. # # ------------------------------------------------------------------------------ diff --git a/src/_mina b/src/_mina index 01b06f2..cfe920f 100644 --- a/src/_mina +++ b/src/_mina @@ -1,6 +1,6 @@ #compdef mina # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_mix b/src/_mix index 989adef..40234b3 100644 --- a/src/_mix +++ b/src/_mix @@ -2,7 +2,7 @@ #autoload # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_mssh b/src/_mssh index c47a305..49b26d6 100644 --- a/src/_mssh +++ b/src/_mssh @@ -49,7 +49,7 @@ fi # Cache invalidates after 30 seconds # # Reference: - # http://zsh.sourceforge.net/Doc/Release/Expansion.html#index-globbing_002c-qualifiers + # https://zsh.sourceforge.net/Doc/Release/Expansion.html#index-globbing_002c-qualifiers local -a oldp oldp=( "$1"(ms+30) ) (( $#oldp )) @@ -104,5 +104,5 @@ fi _describe 'command' instances # Reference: -# http://zsh.sourceforge.net/Doc/Release/Completion-System.html +# https://zsh.sourceforge.net/Doc/Release/Completion-System.html # https://github.com/zsh-users/zsh-completions/blob/master/zsh-completions-howto.org diff --git a/src/_mussh b/src/_mussh index ff2e96e..d52cb40 100644 --- a/src/_mussh +++ b/src/_mussh @@ -1,6 +1,6 @@ #compdef mussh # ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for MUltihost SSH Wrapper (http://mussh.sourceforge.net/) +# Completion script for MUltihost SSH Wrapper (https://sourceforge.net/projects/mussh/) # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_nanoc b/src/_nanoc index 7a0fb1f..d0a334d 100644 --- a/src/_nanoc +++ b/src/_nanoc @@ -23,7 +23,7 @@ # Description # ----------- # -# Completion script for nanoc (https://nanoc.ws/) +# Completion script for nanoc (https://nanoc.app/) # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_node b/src/_node index 6f5387c..691602f 100644 --- a/src/_node +++ b/src/_node @@ -1,6 +1,6 @@ #compdef node # ------------------------------------------------------------------------------ -# Copyright (c) 2018 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2018 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_openssl b/src/_openssl index bf3594f..ce33e67 100644 --- a/src/_openssl +++ b/src/_openssl @@ -1,6 +1,6 @@ #compdef openssl # ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_openvpn3 b/src/_openvpn3 index 3f1ca1c..a6329b4 100644 --- a/src/_openvpn3 +++ b/src/_openvpn3 @@ -1,6 +1,6 @@ #compdef openvpn3 # ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_optirun b/src/_optirun index ebc0e00..dbd01fc 100644 --- a/src/_optirun +++ b/src/_optirun @@ -1,6 +1,6 @@ #compdef optirun # ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_opustools b/src/_opustools index db3873f..ba39d57 100644 --- a/src/_opustools +++ b/src/_opustools @@ -1,7 +1,7 @@ #compdef opusenc opusdec opusinfo # ------------------------------------------------------------------------------ -# Copyright (c) 2021 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2021 Github zsh-users - https://github.com/zsh-users # # Permission is hereby granted, without written agreement and without # licence or royalty fees, to use, copy, modify, and distribute this diff --git a/src/_patool b/src/_patool index d132a6c..5abe6b2 100644 --- a/src/_patool +++ b/src/_patool @@ -1,6 +1,6 @@ #compdef patool # ------------------------------------------------------------------------------ -# Copyright (c) 2017 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/src/_periscope b/src/_periscope index 588c4ef..a4fa29e 100644 --- a/src/_periscope +++ b/src/_periscope @@ -3,7 +3,7 @@ # Description # ----------- # -# Completion script for Periscope (http://code.google.com/p/periscope). +# Completion script for Periscope (https://code.google.com/archive/p/periscope/). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_pgsql_utils b/src/_pgsql_utils index df0d096..010df6b 100644 --- a/src/_pgsql_utils +++ b/src/_pgsql_utils @@ -1,6 +1,6 @@ #compdef psql pg_dump pg_dumpall pg_restore createdb dropdb vacuumdb createuser dropuser initdb # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users, Dominic Mitchell, Johann 'Myrkraverk' Oskarsson, Daniel Serodio, J Smith +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users, Dominic Mitchell, Johann 'Myrkraverk' Oskarsson, Daniel Serodio, J Smith # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,9 +28,9 @@ # Description # ----------- # -# Completion script for PostgreSQL utils (http://postgresql.org). +# Completion script for PostgreSQL utils (https://www.postgresql.org/). # -# Source: http://www.zsh.org/mla/users/2004/msg01006.html +# Source: https://www.zsh.org/mla/users/2004/msg01006.html # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_phing b/src/_phing index afdaf3e..eab4f98 100644 --- a/src/_phing +++ b/src/_phing @@ -23,7 +23,7 @@ # Description # ----------- # -# Completion script for Phing (http://phing.info). +# Completion script for Phing (https://www.phing.info/). # # ------------------------------------------------------------------------------ # Authors @@ -38,7 +38,7 @@ _phing() { integer NORMARG typeset -A opt_args - # Follow http://phing.info/docs/stable/webhelp/sec.commandlineargs.html for more information + # Follow https://www.phing.info/guide/chunkhtml/sec.commandlineargs.html for more information _arguments \ '(-h -help)'{-h,-help}'[display the help screen]' \ '(-v -version)'{-v,-version}'[print version information and exit]' \ diff --git a/src/_pixz b/src/_pixz index f15c3ca..7b5891d 100644 --- a/src/_pixz +++ b/src/_pixz @@ -1,6 +1,6 @@ #compdef pixz # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_pkcon b/src/_pkcon index 440a7fe..3bf8057 100644 --- a/src/_pkcon +++ b/src/_pkcon @@ -25,7 +25,7 @@ # Description # ----------- # -# Completion script for pkcon (http://www.packagekit.org). +# Completion script for pkcon (https://www.freedesktop.org/software/PackageKit/). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_play b/src/_play index c135328..6b35899 100644 --- a/src/_play +++ b/src/_play @@ -3,7 +3,7 @@ # Description # ----------- # -# Completion script for Play! framework 1.2.2 (http://www.playframework.org). +# Completion script for Play! framework 1.2.2 (https://www.playframework.com/). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_port b/src/_port index 260d37a..5deec68 100644 --- a/src/_port +++ b/src/_port @@ -3,7 +3,7 @@ # Description # ----------- # -# Completion script for MacPorts (http://www.macports.org). +# Completion script for MacPorts (https://www.macports.org/). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_protoc b/src/_protoc index 4570c6b..fc6b9d5 100644 --- a/src/_protoc +++ b/src/_protoc @@ -1,6 +1,6 @@ #compdef protoc # ------------------------------------------------------------------------------ -# Copyright (c) 2020 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2020 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_qmk b/src/_qmk index 2cfd659..f308887 100644 --- a/src/_qmk +++ b/src/_qmk @@ -1,6 +1,6 @@ #compdef qmk # ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_rails b/src/_rails index 6dc85d4..e2304db 100644 --- a/src/_rails +++ b/src/_rails @@ -1,6 +1,6 @@ #compdef rails # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for Ruby on Rails (http://rubyonrails.org/). +# Completion script for Ruby on Rails (https://rubyonrails.org/). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_ralio b/src/_ralio index cedbb02..0a42270 100644 --- a/src/_ralio +++ b/src/_ralio @@ -1,6 +1,6 @@ #compdef ralio # ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_redis-cli b/src/_redis-cli index d11c06f..0320f9c 100644 --- a/src/_redis-cli +++ b/src/_redis-cli @@ -1,7 +1,7 @@ #compdef redis-cli rec # ------------------------------------------------------------------------------ # Copyright (c) 2009-2015 Robby Russell and contributors (see -# https://github.com/robbyrussell/oh-my-zsh/contributors) +# https://github.com/ohmyzsh/ohmyzsh/graphs/contributors) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -24,9 +24,9 @@ # Description # ----------- # -# Completion script for Redis (http://redis.io). +# Completion script for Redis (https://redis.io/). # -# Source: https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/redis-cli +# Source: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/redis-cli # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_rfkill b/src/_rfkill index 1c88133..8539bef 100644 --- a/src/_rfkill +++ b/src/_rfkill @@ -1,7 +1,7 @@ #compdef rfkill # ------------------------------------------------------------------------------ # Copyright (c) 2014 Vincent Bernat -# Copyright (c) 2014 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2014 Github zsh-users - https://github.com/zsh-users # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -18,7 +18,7 @@ # Description # ----------- # -# Completion script for rfkill (http://wireless.kernel.org/en/users/Documentation/rfkill) +# Completion script for rfkill (https://wireless.wiki.kernel.org/en/users/Documentation/rfkill) # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_rmlint b/src/_rmlint index 92af0c6..5730ac7 100644 --- a/src/_rmlint +++ b/src/_rmlint @@ -1,6 +1,6 @@ #compdef rmlint rmlint.sh -P rmlint.*.sh -# Copyright (c) 2021 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2021 Github zsh-users - https://github.com/zsh-users # # Permission is hereby granted, without written agreement and without # licence or royalty fees, to use, copy, modify, and distribute this diff --git a/src/_rslsync b/src/_rslsync index 49517bc..c72fb75 100644 --- a/src/_rslsync +++ b/src/_rslsync @@ -1,6 +1,6 @@ #compdef rslsync # ------------------------------------------------------------------------------ -# Copyright (c) 2017 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_rspec b/src/_rspec index 0ca0e99..bb76d0c 100644 --- a/src/_rspec +++ b/src/_rspec @@ -1,6 +1,6 @@ #compdef rspec # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for RSpec (http://rspec.info/). +# Completion script for RSpec (https://rspec.info/). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_rsvm b/src/_rsvm index d6de50c..3840eb2 100644 --- a/src/_rsvm +++ b/src/_rsvm @@ -1,6 +1,6 @@ #compdef rsvm # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_sbt b/src/_sbt index f2de6e9..ff9e3dd 100644 --- a/src/_sbt +++ b/src/_sbt @@ -1,6 +1,6 @@ #compdef sbt # ------------------------------------------------------------------------------ -# Copyright (c) 2013 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2013 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for sbt 0.12+ (http://scala-sbt.org). +# Completion script for sbt 0.12+ (https://www.scala-sbt.org). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_scala b/src/_scala index 8043468..f7511a6 100644 --- a/src/_scala +++ b/src/_scala @@ -1,6 +1,6 @@ #compdef scala scalac # ------------------------------------------------------------------------------ -# Copyright (c) 2012 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2012 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for scala and scalac (http://www.scala-lang.org/). +# Completion script for scala and scalac (https://www.scala-lang.org/). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_scrub b/src/_scrub index 0f02e1c..7b24fef 100644 --- a/src/_scrub +++ b/src/_scrub @@ -1,6 +1,6 @@ #compdef scrub # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for scrub 2.6.1 (http://linux.die.net/man/1/scrub). +# Completion script for scrub 2.6.1 (https://linux.die.net/man/1/scrub). # # A utility which iteratively writes patterns on files or disk devices # to make retrieving the data more difficult. diff --git a/src/_setcap b/src/_setcap index 6f34a0e..21ac2b1 100644 --- a/src/_setcap +++ b/src/_setcap @@ -1,6 +1,6 @@ #compdef setcap # ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_setup.py b/src/_setup.py index 242af25..5b6baf4 100644 --- a/src/_setup.py +++ b/src/_setup.py @@ -23,7 +23,7 @@ # Description # ----------- # -# Completion script for setup.py (http://docs.python.org/distutils/). +# Completion script for setup.py (https://docs.python.org/distutils/). # # ------------------------------------------------------------------------------ # Authors @@ -342,8 +342,8 @@ _setuppy_sdist() { (( $+functions[_setuppy_register] )) || _setuppy_register() { _arguments -s \ - "--repository=[url of repository \[default: http://pypi.python.org/pypi\]]" \ - "-r[url of repository \[default: http://pypi.python.org/pypi\]]" \ + "--repository=[url of repository \[default: https://pypi.python.org/pypi\]]" \ + "-r[url of repository \[default: https://pypi.python.org/pypi\]]" \ "--show-response[display full response text from server]" \ "--list-classifiers[list the valid Trove classifiers]" \ "--strict[Will stop the registering if the meta-data are not fully compliant]" \ @@ -469,8 +469,8 @@ _setuppy_bdist_wininst() { (( $+functions[_setuppy_upload] )) || _setuppy_upload() { _arguments -s \ - "--repository=[url of repository \[default: http://pypi.python.org/pypi\]]" \ - "-r[url of repository \[default: http://pypi.python.org/pypi\]]" \ + "--repository=[url of repository \[default: https://pypi.python.org/pypi\]]" \ + "-r[url of repository \[default: https://pypi.python.org/pypi\]]" \ "--show-response[display full response text from server]" \ "--sign[sign files to upload using gpg]" \ "-s[sign files to upload using gpg]" \ @@ -697,8 +697,8 @@ _setuppy_install_egg_info() { (( $+functions[_setuppy_upload_docs] )) || _setuppy_upload_docs() { _arguments -s \ - "--repository=[url of repository \[default: http://pypi.python.org/pypi\]]" \ - "-r[url of repository \[default: http://pypi.python.org/pypi\]]" \ + "--repository=[url of repository \[default: https://pypi.python.org/pypi\]]" \ + "-r[url of repository \[default: https://pypi.python.org/pypi\]]" \ "--show-response[display full response text from server]" \ "--upload-dir=[directory to upload]" \ "*::setup.py commands:_setup.py" diff --git a/src/_shellcheck b/src/_shellcheck index 5927c0e..20d023e 100644 --- a/src/_shellcheck +++ b/src/_shellcheck @@ -1,6 +1,6 @@ #compdef shellcheck # ------------------------------------------------------------------------------ -# Copyright (c) 2021 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2021 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_srm b/src/_srm index 08d2a32..ec88b52 100644 --- a/src/_srm +++ b/src/_srm @@ -1,6 +1,6 @@ #compdef srm # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the diff --git a/src/_stack b/src/_stack index 9230b4c..847328c 100644 --- a/src/_stack +++ b/src/_stack @@ -1,6 +1,6 @@ #compdef stack # ------------------------------------------------------------------------------ -# Copyright (c) 2015 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2015 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_supervisorctl b/src/_supervisorctl index b48ce13..4ec9d5e 100644 --- a/src/_supervisorctl +++ b/src/_supervisorctl @@ -1,6 +1,6 @@ #compdef supervisorctl # ------------------------------------------------------------------------------ -# Copyright (c) 2015 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2015 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -31,7 +31,7 @@ # Completion script for supervisorctl from Supervisord (http://supervisord.org) # # Sources: -# https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/supervisor +# https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/supervisor # https://github.com/zsh-users/zsh-completions/blob/master/src/_brew # # ------------------------------------------------------------------------------ diff --git a/src/_thor b/src/_thor index aadaef2..9e1e66d 100644 --- a/src/_thor +++ b/src/_thor @@ -1,7 +1,7 @@ #compdef thor # ------------------------------------------------------------------------------ # Copyright (c) 2009-2015 Robby Russell and contributors (see -# https://github.com/robbyrussell/oh-my-zsh/contributors) +# https://github.com/ohmyzsh/ohmyzsh/graphs/contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/src/_ufw b/src/_ufw index ffd04f8..238ff1a 100644 --- a/src/_ufw +++ b/src/_ufw @@ -1,6 +1,6 @@ #compdef ufw # ------------------------------------------------------------------------------ -# Copyright (c) 2016 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_virtualbox b/src/_virtualbox index 03b49d6..5e365cd 100644 --- a/src/_virtualbox +++ b/src/_virtualbox @@ -3,7 +3,7 @@ # Description # ----------- # -# Completion script for VirtualBox (http://www.virtualbox.org). +# Completion script for VirtualBox (https://www.virtualbox.org/). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_vnstat b/src/_vnstat index fec8ae0..7359347 100644 --- a/src/_vnstat +++ b/src/_vnstat @@ -1,6 +1,6 @@ #compdef vnstat # ------------------------------------------------------------------------------ -# Copyright (c) 2012 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2012 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_wemux b/src/_wemux index d38fc28..691636f 100644 --- a/src/_wemux +++ b/src/_wemux @@ -1,6 +1,6 @@ #compdef wemux # ------------------------------------------------------------------------------ -# Copyright (c) 2015 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2015 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_xinput b/src/_xinput index 9c0e9b2..4f7cb0c 100644 --- a/src/_xinput +++ b/src/_xinput @@ -1,6 +1,6 @@ #compdef xinput # ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/src/_xsel b/src/_xsel index 3ba249b..460d992 100644 --- a/src/_xsel +++ b/src/_xsel @@ -1,6 +1,6 @@ #compdef xsel # ------------------------------------------------------------------------------ -# Copyright (c) 2017 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for xsel (http://www.vergenet.net/~conrad/software/xsel/). +# Completion script for xsel (https://www.vergenet.net/~conrad/software/xsel/). # # ------------------------------------------------------------------------------ # Authors diff --git a/src/_zcash-cli b/src/_zcash-cli index 70ffa40..5859b2f 100644 --- a/src/_zcash-cli +++ b/src/_zcash-cli @@ -1,6 +1,6 @@ #compdef zcash-cli # ------------------------------------------------------------------------------ -# Copyright (c) 2017 Github zsh-users - http://github.com/zsh-users +# Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/zsh-completions-howto.org b/zsh-completions-howto.org index 0ea805b..094e29b 100644 --- a/zsh-completions-howto.org +++ b/zsh-completions-howto.org @@ -21,67 +21,67 @@ The official documentation for writing zsh completion functions is difficult to understand, and doesn't give many examples. At the time of writing this document I was able to find a few other tutorials on the web, however those tutorials only explain a small portion of the capabilities of the completion system. This document aims to cover areas not explained elsewhere, -with examples, so that you can learn how to write more advanced completion functions. I do not go into all the details, but will +with examples, so that you can learn how to write more advanced completion functions. I do not go into all the details, but will give enough information and examples to get you up and running. If you need more details you can look it up for yourself in the - [[http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-System][official documentation]]. + [[https://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-System][official documentation]]. Please make any scripts that you create publicly available for others (e.g. by forking this repo and making a [[id:64bcd501-b0f0-48c7-b8e2-07af708b95ec][pull request]]). Also if you have any more information to add or improvements to make to this tutorial, please do. * Getting started ** Telling zsh which function to use for completing a command -Completion functions for commands are stored in files with names beginning with an underscore _, and these files should +Completion functions for commands are stored in files with names beginning with an underscore _, and these files should be placed in a directory listed in the $fpath variable. -You can add a directory to $fpath by adding a line like this to your ~/.zshrc file: -#+BEGIN_SRC sh +You can add a directory to $fpath by adding a line like this to your ~/.zshrc file: +#+BEGIN_SRC sh fpath=(~/newdir $fpath) #+END_SRC The first line of a completion function file can look something like this: -#+BEGIN_SRC sh +#+BEGIN_SRC sh #compdef foobar #+END_SRC This tells zsh that the file contains code for completing the foobar command. This is the format that you will use most often for the first line, but you can also use the same file for completing -several different functions if you want. See [[http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Autoloaded-files][here]] for more details. +several different functions if you want. See [[https://zsh.sourceforge.net/Doc/Release/Completion-System.html#Autoloaded-files][here]] for more details. -You can also use the compdef command directly (e.g. in your ~/.zshrc file) to tell zsh which function to use for completing +You can also use the compdef command directly (e.g. in your ~/.zshrc file) to tell zsh which function to use for completing a command like this: -#+BEGIN_SRC sh +#+BEGIN_SRC sh > compdef _function foobar #+END_SRC or to use the same completions for several commands: -#+BEGIN_SRC sh +#+BEGIN_SRC sh > compdef _function foobar goocar hoodar #+END_SRC or if you want to supply arguments: -#+BEGIN_SRC sh +#+BEGIN_SRC sh > compdef '_function arg1 arg2' foobar #+END_SRC -See [[http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Functions-4][here]] for more details. +See [[https://zsh.sourceforge.net/Doc/Release/Completion-System.html#Functions-4][here]] for more details. ** Completing generic gnu commands -Many [[http://www.gnu.org/][gnu]] commands have a standardized way of listing option descriptions (when the --help option is used). +Many [[https://www.gnu.org/][gnu]] commands have a standardized way of listing option descriptions (when the --help option is used). For these commands you can use the _gnu_generic function for automatically creating completions, like this: -#+BEGIN_SRC sh +#+BEGIN_SRC sh > compdef _gnu_generic foobar #+END_SRC or to use _gnu_generic with several different commands: -#+BEGIN_SRC sh +#+BEGIN_SRC sh > compdef _gnu_generic foobar goocar hoodar #+END_SRC This line can be placed in your ~/.zshrc file. ** Copying completions from another command -If you want a command, say cmd1, to have the same completions as another, say cmd2, which has already had +If you want a command, say cmd1, to have the same completions as another, say cmd2, which has already had completions defined for it, you can do this: -#+BEGIN_SRC sh +#+BEGIN_SRC sh > compdef cmd1=cmd2 #+END_SRC This can be useful for example if you have created an alias for a command to help you remember it. * Writing your own completion functions A good way to get started is to look at some already defined completion functions. -On my linux installation these are found in /usr/share/zsh/functions/Completion/Unix +On my linux installation these are found in /usr/share/zsh/functions/Completion/Unix and /usr/share/zsh/functions/Completion/Linux and a few other subdirs. -You will notice that the _arguments function is used a lot in these files. -This is a utility function that makes it easy to write simple completion functions. +You will notice that the _arguments function is used a lot in these files. +This is a utility function that makes it easy to write simple completion functions. The _arguments function is a wrapper around the compadd builtin function. The compadd builtin is the core function used to add completion words to the command line, and control its behaviour. However, most of the time you will not need to use compadd, since there are many utility functions such as _arguments @@ -90,8 +90,8 @@ and _describe which are easier to use. For very basic completions the _describe function should be adequate ** Utility functions -Here is a list of some of the utility functions that may be of use. -The full list of utility functions, with full explanations, is available [[http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-Functions][here]]. +Here is a list of some of the utility functions that may be of use. +The full list of utility functions, with full explanations, is available [[https://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-Functions][here]]. Examples of how to use these functions are given in the next section. *** main utility functions for overall completion @@ -100,7 +100,7 @@ Examples of how to use these functions are given in the next section. | _describe | Used for creating simple completions consisting of words with descriptions (but no actions). Easier to use than _arguments | | _gnu_generic | Can be used to complete options for commands that understand the `--help' option. | | _regex_arguments | Creates a function for matching commandline arguments with regular expressions, and then performing actions/completions. | -*** functions for performing complex completions of single words +*** functions for performing complex completions of single words | _values | Used for completing arbitrary keywords (values) and their arguments, or comma separated lists of such combinations. | | _combination | Used to complete combinations of values, for example pairs of hostnames and usernames. | | _multi_parts | Used for completing multiple parts of words separately where each part is separated by some char, e.g. for completing partial filepaths: /u/i/sy -> /usr/include/sys | @@ -135,13 +135,13 @@ The actions can take one of the following forms: | {EVAL-STRING} | Evaluate string as shell code to generate matches. This can be used to call a utility function with arguments, e.g. _values or _describe | | =ACTION | Inserts a dummy word into completion command line without changing the point at which completion takes place. | Not all action types are available for all utility functions that use them. For example the ->STRING type is not available in the -_regex_arguments or _alternative functions. +_regex_arguments or _alternative functions. ** Writing simple completion functions using _describe The _describe function can be used for simple completions where the order and position of the options/arguments is -not important. You just need to create an array parameter to hold the options & their descriptions, and then pass +not important. You just need to create an array parameter to hold the options & their descriptions, and then pass the parameter name as an argument to _describe. The following example creates completion candidates c and d, with the descriptions (note this should be put in a file called _cmd in some directory listed in $fpath). -#+BEGIN_SRC sh +#+BEGIN_SRC sh #compdef cmd local -a subcmds subcmds=('c:description for c command' 'd:description for d command') @@ -149,7 +149,7 @@ _describe 'command' subcmds #+END_SRC You can use several different lists separated by a double hyphen as follows but note that this mixes the matches under and single heading and is not intended to be used with different types of completion candidates: -#+BEGIN_SRC sh +#+BEGIN_SRC sh local -a subcmds topics subcmds=('c:description for c command' 'd:description for d command') topics=('e:description for e help topic' 'f:description for f help topic') @@ -166,20 +166,20 @@ However, unlike _describe, instead of fixed matches further functions may be cal As arguments it takes a list of specifications each in the form 'TAG:DESCRIPTION:ACTION' where TAG is a special tag that identifies the type of completion matches, DESCRIPTION is used as a heading to describe the group of completion candidates collectively, and ACTION is one of the action types listed previously (apart from the ->STRING and =ACTION forms). For example: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _alternative 'arguments:custom arg:(a b c)' 'files:filename:_files' #+END_SRC The first specification adds completion candidates a, b & c, and the second specification calls the _files function for completing filepaths. We could split the specifications over several lines with \ and add descriptions to each of the custom args like this: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _alternative \ 'args:custom arg:((a\:"description a" b\:"description b" c\:"description c"))' \ 'files:filename:_files' #+END_SRC If we want to pass arguments to _files they can simply be included, like this: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _alternative \ 'args:custom arg:((a\:"description a" b\:"description b" c\:"description c"))'\ 'files:filename:_files -/' @@ -187,7 +187,7 @@ _alternative \ To use parameter expansion to create our list of completions we must use double quotes to quote the specifications, e.g: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _alternative \ "dirs:user directory:($userdirs)" \ "pids:process ID:($(ps -A o pid=))" @@ -196,37 +196,37 @@ In this case the first specification adds the words stored in the $userdirs vari evaluates 'ps -A o pid=' to get a list of pids to use as completion candidates. In practice, we would make used of the existing _pids function for this. We can use other utility functions such as _values in the ACTION to perform more complex completions, e.g: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _alternative \ "directories:user directory:($userdirs)" \ 'options:comma-separated opt: _values -s , letter a b c' #+END_SRC this will complete the items in $userdirs, as well as a comma separated list containing a, b &/or c. Note the use of the initial space before _values. This is needed because _values doesn't understand standard compadd options for descriptions. -As with _describe, the _alternative function can itself be used in an ACTION as part of a specification for _arguments -or _regex_arguments. +As with _describe, the _alternative function can itself be used in an ACTION as part of a specification for _arguments +or _regex_arguments. ** Writing completion functions using _arguments With a single call to the _arguments function you can create fairly sophisticated completion functions. It is intended to handle typical commands that take a variety of options along with some normal arguments. Like the _alternative function, _arguments takes a list of specification strings as arguments. These specification strings specify options and any corresponding option arguments (e.g. -f filename), -or command arguments. +or command arguments. Basic option specifications take the form '-OPT[DESCRIPTION]', e.g. like this: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _arguments '-s[sort output]' '--l[long output]' '-l[long output]' #+END_SRC Arguments for the option can be specified after the option description in this form '-OPT[DESCRIPTION]:MESSAGE:ACTION', where MESSAGE is a message to display and ACTION can be any of the forms mentioned in the ACTIONS section above. For example: -#+BEGIN_SRC sh -_arguments '-f[input file]:filename:_files' +#+BEGIN_SRC sh +_arguments '-f[input file]:filename:_files' #+END_SRC Command argument specifications take the form 'N:MESSAGE:ACTION' where N indicates that it is the Nth command argument, and MESSAGE & ACTION are as before. If the N is omitted then it just means the next command argument (after any that have already been specified). If a double colon is used at the start (after N) then the argument is optional. For example: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _arguments '-s[sort output]' '1:first arg:_net_interfaces' '::optional arg:_files' ':next arg:(a b c)' #+END_SRC here the first arg is a network interface, the next optional arg is a file name, the last arg can be either a, b or c, @@ -247,38 +247,38 @@ case "$state" in ;; esac #+END_SRC -In this case paths to music files are completed stepwise descending down directories using the _multi_parts function, +In this case paths to music files are completed stepwise descending down directories using the _multi_parts function, and the flags are completed as a comma separated list using the _values function. I have just given you the basics of _arguments specifications here, you can also specify mutually exclusive options, -repeated options & arguments, options beginning with + instead of -, etc. For more details see the [[http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-System][official documentation]]. +repeated options & arguments, options beginning with + instead of -, etc. For more details see the [[https://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-System][official documentation]]. Also have a look at the tutorials mentioned at the end of this document, and the completion functions in the [[https://github.com/vapniks/zsh-completions/tree/master/src][src directory]]. ** Writing completion functions using _regex_arguments and _regex_words -If you have a complex command line specification with several different possible argument sequences then +If you have a complex command line specification with several different possible argument sequences then the _regex_arguments function may be what you need. It typically works well where you have a series of keywords followed by a variable number of arguments. -_regex_arguments creates a completion function whose name is given by the first argument. -Hence you need to first call _regex_arguments to create the completion function, and then call that function, +_regex_arguments creates a completion function whose name is given by the first argument. +Hence you need to first call _regex_arguments to create the completion function, and then call that function, e.g. like this: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _regex_arguments _cmd OTHER_ARGS.. _cmd "$@" #+END_SRC The OTHER_ARGS should be sequences of specifications for matching & completing words on the command line. These sequences can be separated by '|' to represent alternative sequences of words. -You can use bracketing to arbitrary depth to specify alternate subsequences, but the brackets must be backslashed like this \( \) +You can use bracketing to arbitrary depth to specify alternate subsequences, but the brackets must be backslashed like this \( \) or quoted like this '(' ')'. For example: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _regex_arguments _cmd SEQ1 '|' SEQ2 \( SEQ2a '|' SEQ2b \) _cmd "$@" #+END_SRC This specifies a command line matching either SEQ1, or SEQ2 followed by SEQ2a or SEQ2b. You are describing the form arguments to the command take in the form of a regular expression grammar. -Each specification in a sequence must contain a / PATTERN/ part at the start followed by an optional ':TAG:DESCRIPTION:ACTION' -part. +Each specification in a sequence must contain a / PATTERN/ part at the start followed by an optional ':TAG:DESCRIPTION:ACTION' +part. Each PATTERN is a regular expression to match a word on the command line. These patterns are processed sequentially until we reach a pattern that doesn't match at which point any corresponding ACTION is performed to obtain completions @@ -289,7 +289,7 @@ The ':TAG:DESCRIPTION:ACTION' part is interpreted in the same way as for the _al except that it has an extra : at the start, and now all of the possible ACTION formats listed previously are allowed. Here is an example: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _regex_arguments _cmd /$'[^\0]##\0'/ \( /$'word1(a|b|c)\0'/ ':word:first word:(word1a word1b word1c)' '|'\ /$'word11(a|b|c)\0'/ ':word:first word:(word11a word11b word11c)' \( /$'word2(a|b|c)\0'/ ':word:second word:(word2a word2b word2c)'\ '|' /$'word22(a|b|c)\0'/ ':word:second word:(word22a word22b word22c)' \) \) @@ -299,51 +299,51 @@ in this case the first word can be word1 or word11 followed by an a, b or c, and word is allowed which can be word2 followed by and a, b, or c, or a filename. If this sounds too complicated a much simpler alternative is to use the _regex_words function for creating -specifications for _regex_arguments. +specifications for _regex_arguments. *** Patterns You may notice that the / PATTERN/ specs in the previous example don't look like normal regular expressions. Often a string parameter in the form $'foo\0' is used. This is so that the \0 in the string is interpreted correctly as a null char which is used to separate words in the internal representation. If you don't include the \0 at the end -of the pattern you may get problems matching the next word. If you need to use the contents of a variable in a pattern, -you can double quote it so that it gets expanded and then put a string parameter containing a null char afterwards, +of the pattern you may get problems matching the next word. If you need to use the contents of a variable in a pattern, +you can double quote it so that it gets expanded and then put a string parameter containing a null char afterwards, like this: "$somevar"$'\0' The regular expression syntax for patterns seems to be a bit different from normal regular expressions, -and I can't find documentation anywhere. +and I can't find documentation anywhere. However I have managed to work out what the following special chars are for: | * | wildcard - any number of chars | | ? | wildcard - single char | | # | zero or more of the previous char (like * in a normal regular expression) | | ## | one or more of the previous char (like + in a normal regular expression) | *** _regex_words -The _regex_words function makes it much easier to create specifications for _regex_arguments. -The results of calling _regex_words can be stored in a variable which can then be used instead -of a specification for _regex_arguments. +The _regex_words function makes it much easier to create specifications for _regex_arguments. +The results of calling _regex_words can be stored in a variable which can then be used instead +of a specification for _regex_arguments. To create a specification using _regex_words you supply it with a tag followed by a description followed by a list -of specifications for individual words. These specifications take the form 'WORD:DESCRIPTION:SPEC' where WORD is the -word to be completed, DESCRIPTION is a description for it, and SPEC can be another variable created by _regex_words +of specifications for individual words. These specifications take the form 'WORD:DESCRIPTION:SPEC' where WORD is the +word to be completed, DESCRIPTION is a description for it, and SPEC can be another variable created by _regex_words specifying words that come after the current word or blank if there are no further words. For example: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _regex_words firstword 'The first word' 'word1a:a word:' 'word1b:b word:' 'word1c:c word' #+END_SRC -the results of this function call will be stored in the $reply array, and so we should store it in another array +the results of this function call will be stored in the $reply array, and so we should store it in another array before $reply gets changed again, like this: -#+BEGIN_SRC sh +#+BEGIN_SRC sh local -a firstword _regex_words word 'The first word' 'word1a:a word:' 'word1b:b word:' 'word1c:c word' firstword="$reply[@]" #+END_SRC we could then use it with _regex_arguments like this: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _regex_arguments _cmd /$'[^\0]##\0'/ "$firstword[@]" _cmd "$@" #+END_SRC Note that I have added an extra pattern for the initial command word itself. Here is a more complex example where we call _regex_words for different words on the command line -#+BEGIN_SRC sh +#+BEGIN_SRC sh local -a firstword firstword2 secondword secondword2 _regex_words word1 'The second word' 'woo:tang clan' 'hoo:not me' secondword=("$reply[@]") @@ -359,80 +359,80 @@ _regex_arguments _hello /$'[^\0]##\0'/ "${firstword[@]}" "${firstword2[@]}" _hello "$@" #+END_SRC In this case the first word can be one of "foo", "man", "chu", "boo", "ga" or "loo". -If the first word is "boo" or "ga" then the second word can be "woo" or "hoo", +If the first word is "boo" or "ga" then the second word can be "woo" or "hoo", and if the first word is "loo" then the second word can be "yee" or "haa", in the other cases there is no second word. For a good example of the usage of _regex_words have a look at the _ip function. ** complex completions with _values, _sep_parts, & _multi_parts -The _values, _sep_parts & _multi_parts functions can be used either on their own, or as ACTIONs in specifications for +The _values, _sep_parts & _multi_parts functions can be used either on their own, or as ACTIONs in specifications for _alternative, _arguments or _regex_arguments. The following examples may be instructive. -See the [[http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-System][official documentation]] for more info. +See the [[https://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-System][official documentation]] for more info. Space separated list of mp3 files: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _values 'mp3 files' ~/*.mp3 #+END_SRC Comma separated list of session id numbers: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _values -s , 'session id' "${(uonzf)$(ps -A o sid=)}" #+END_SRC Completes foo@news:woo, or foo@news:laa, or bar@news:woo, etc: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _sep_parts '(foo bar)' @ '(news ftp)' : '(woo laa)' #+END_SRC Complete some MAC addresses one octet at a time: -#+BEGIN_SRC sh +#+BEGIN_SRC sh _multi_parts : '(00:11:22:33:44:55 00:23:34:45:56:67 00:23:45:56:67:78)' #+END_SRC ** Adding completion words directly using compadd For more fine grained control you can use the builtin compadd function to add completion words directly. -This function has many different options for controlling how completions are displayed and how text on the command line -can be altered when words are completed. Read the [[http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-System][official documentation]] for full details. +This function has many different options for controlling how completions are displayed and how text on the command line +can be altered when words are completed. Read the [[https://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-System][official documentation]] for full details. Here I just give a few simple examples. Add some words to the list of possible completions: -#+BEGIN_SRC sh +#+BEGIN_SRC sh compadd foo bar blah #+END_SRC As above but also display an explanation: -#+BEGIN_SRC sh +#+BEGIN_SRC sh compadd -X 'Some completions' foo bar blah #+END_SRC As above but automatically insert a prefix of "what_" before the completed word: -#+BEGIN_SRC sh +#+BEGIN_SRC sh compadd -P what_ foo bar blah #+END_SRC As above but automatically insert a suffix of "_todo" after the completed word: -#+BEGIN_SRC sh +#+BEGIN_SRC sh compadd -S _todo foo bar blah #+END_SRC As above but automatically remove the "_todo" suffix if a blank char is typed after the suffix: -#+BEGIN_SRC sh +#+BEGIN_SRC sh compadd -P _todo -q foo bar blah #+END_SRC Add words in array $wordsarray to the list of possible completions -#+BEGIN_SRC sh +#+BEGIN_SRC sh compadd -a wordsarray #+END_SRC * Testing & debugging To reload a completion function: -#+BEGIN_SRC sh +#+BEGIN_SRC sh > unfunction _func > autoload -U _func #+END_SRC -The following functions can be called to obtain useful information. +The following functions can be called to obtain useful information. If the default keybindings don't work you can try pressing Alt+x and then enter the command name. | Function | Default keybinding | Description | |-----------------+--------------------+--------------------------------------------------------------------------------------------------------------------------------| @@ -446,19 +446,19 @@ Take care to use the correct type of quoting for specifications to _arguments or use double quotes if there is a parameter that needs to be expanded in the specification, single quotes otherwise, and make sure to use different quotes around item descriptions. -Check that you have the correct number of :'s in the correct places for specifications for _arguments, +Check that you have the correct number of :'s in the correct places for specifications for _arguments, _alternative, _regex_arguments, etc. Remember to include an initial pattern to match the command word when using _regex_arguments (it does not need a matching action). Remember to put a null char $'\0' at the end of any PATTERN argument for _regex_arguments * Tips -Sometimes you have a situation where there is just one option that can come after a subcommand, and zsh will complete this -automatically when tab is pressed after the subcommand. If instead you want it listed with its description before completing -you can add another empty option (i.e. \:) to the ACTION like this ':TAG:DESCRIPTION:((opt1\:"description for opt1" \:))' +Sometimes you have a situation where there is just one option that can come after a subcommand, and zsh will complete this +automatically when tab is pressed after the subcommand. If instead you want it listed with its description before completing +you can add another empty option (i.e. \:) to the ACTION like this ':TAG:DESCRIPTION:((opt1\:"description for opt1" \:))' Note this only applies to utility functions that use ACTIONs in their specification arguments (_arguments, _regex_arguments, etc.) * Other resources -[[https://wikimatze.de/writing-zsh-completion-for-padrino/][Here]] is a nicely formatted short tutorial showing basic usage of the _arguments function, +[[https://wikimatze.de/writing-zsh-completion-for-padrino/][Here]] is a nicely formatted short tutorial showing basic usage of the _arguments function, and [[https://web.archive.org/web/20190411104837/http://www.linux-mag.com/id/1106/][here]] is a slightly more advanced tutorial using the _arguments function. -[[http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-System][Here]] is the zshcompsys man page. +[[https://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-System][Here]] is the zshcompsys man page.