1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-02-13 21:00:57 +01:00
Files
oh-my-zsh/plugins
deb0ch f56eb6de31 feat(expressvpn): add plugin for ExpressVPN
This fix makes the autocompletion script also work on zsh without
changing how it works for Bash.

The expression "${COMP_WORDS[@]:2:$COMP_CWORD-2}" does not behave the
same on Bash and Zsh when the command has only zero or one arguments,
e.g. typing "expressvpn conne<TAB>" or "expressvpn <TAB>" would print
the error "autocomplete:8: substring expression: 1 < 2". This fixes it
by handling the case of the short command separately in a simpler way
and handling the rest of the cases the same way as before.

With this fix, zsh users just have to use the command "source
/usr/share/bash-completion/completions/expressvpn" to get the same
auto-completion as bash users.

File : /usr/share/bash-completion/completions/expressvpn

Diff to the original file (using the `diff` command) :

9a10,12
>         opts=$( ${COMP_WORDS[0]} "$cmd" "${COMP_WORDS[@]:2:$COMP_CWORD-2}" --generate-bash-completion )
>     else
>         opts=$( ${COMP_WORDS[0]} --generate-bash-completion )
11d13
<     opts=$( ${COMP_WORDS[0]} "$cmd" "${COMP_WORDS[@]:2:$COMP_CWORD-2}" --generate-bash-completion )
2022-05-22 23:01:38 +02:00
..
2021-08-06 15:51:19 +02:00
2018-10-07 23:29:50 +02:00
2018-08-07 20:42:01 +02:00
2018-10-29 22:11:02 +01:00
2019-10-02 22:31:28 +02:00
2018-11-01 15:29:05 +01:00
2018-10-26 17:06:45 +02:00
2019-12-27 02:51:54 +01:00
2021-12-28 14:34:09 +01:00
2018-10-26 17:05:50 +02:00
2018-08-07 20:42:01 +02:00
2019-10-18 19:05:47 +02:00
2021-12-28 14:34:09 +01:00
2021-12-28 14:34:09 +01:00
2019-06-15 10:54:19 -07:00
2016-07-04 22:34:41 +02:00
2018-10-04 23:13:46 +02:00
2020-10-09 12:35:13 +02:00
2019-12-26 23:23:23 +01:00
2020-05-21 18:11:18 +02:00
2019-10-01 21:21:05 +02:00
2018-10-05 23:18:10 +02:00
2020-03-04 09:12:58 +01:00
2019-12-27 00:58:31 +01:00
2018-10-28 13:22:26 +01:00
2020-09-26 12:38:31 +02:00
2019-10-01 20:10:11 +02:00
2021-12-28 14:34:09 +01:00
2020-09-29 23:35:29 +02:00
2019-12-27 02:47:26 +01:00
2019-12-27 01:05:47 +01:00
2022-01-05 09:23:55 +01:00
2019-10-14 13:06:20 +03:30
2019-10-25 13:14:53 +02:00
2019-10-25 13:14:36 +02:00
2018-10-02 21:44:06 +02:00
2018-08-07 20:42:01 +02:00
2019-10-09 16:58:58 +02:00
2018-08-07 20:42:01 +02:00
2018-12-31 11:14:22 -08:00
2018-10-25 13:12:02 +02:00
2018-08-07 20:42:01 +02:00
2020-04-05 17:14:48 +02:00
2020-04-10 13:53:16 +02:00
2020-09-01 11:52:32 +02:00
2019-12-27 02:34:35 +01:00
2019-05-24 12:17:26 +02:00
2019-10-07 18:08:14 +02:00
2021-12-28 14:34:09 +01:00
2021-12-28 14:34:09 +01:00