1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-23 22:30:07 +00:00
Commit graph

4098 commits

Author SHA1 Message Date
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
jackh
d7fc9b87f9
fix(frontend-search): URL-encode search parameters (#10910)
Fixes #10884
Closes #10910
2022-05-12 15:06:44 +02:00
jackh
140c977a3d
fix(web-search): URL-encode search parameters (#10910)
Fixes #10884
2022-05-12 15:05:10 +02:00
Marc Cornellà
8f56a8bdf3
refactor(boot2docker)!: remove plugin for abandoned boot2docker (#10877)
BREAKING CHANGE: the boot2docker project was abandoned in 2020,
so it makes no sense to keep the plugin. If you were using it,
remove it from the `$plugins` array.

Fixes #10877
2022-04-24 19:09:08 +02:00
Marc Cornellà
8741664e55 fix(nvm): don't try to load nvm via brew if not found (#10878)
Fixes #10878
2022-04-24 18:59:44 +02:00
Carlo Sala
a879ff1515
fix(nvm): support path from Apple Silicon Homebrew (#10875) 2022-04-22 19:37:57 +02:00
Robert Lankford
51555fc4b3
feat(gnu-utils): include ghostname if present (#10867) 2022-04-19 13:18:05 +02:00
David Davis
ed411d3ff1
fix(httpie): remove unnecessary https alias (#10856) 2022-04-18 12:56:55 +02:00
Abhinav M
7ea6ff8d04
fix(docker): rename dls and dlsa aliases to avoid conflict (#10852) 2022-04-13 15:05:55 +02:00
Marc Cornellà
ac82e156ca
style(systemadmin): use function to avoid alias conflicts 2022-04-13 13:14:38 +02:00
Abhinav M
c6f0504cf0
feat(docker): add aliases to docker plugin (#6527) 2022-04-12 21:52:41 +02:00
septs
9fa3f46122
fix(shell-proxy): make ssh-proxy compatible with macOS (#10640) 2022-04-12 13:26:22 +02:00
Carlo Sala
0818df057c
fix: use python3 for all python invocations (#10832) 2022-04-09 14:45:42 +02:00
Richard Mitchell
b3999a4b15
fix(vi-mode): use system clipboard also for vi-delete-char (#10820) 2022-04-06 22:22:47 +02:00
Marc Cornellà
6fa5a4f71d
chore(sprunge): fix Internet Archive URL 2022-03-31 12:35:26 +02:00
Marc Cornellà
e079babdce
chore: fix some instances of bad wording
Co-authored-by: inclusive-coding-bot <inclusive-coding-bot@github.com>
2022-03-31 12:31:09 +02:00
Alejandro Gastón Alvarez
93435bff49
docs(bazel): improve plugin README (#10806) 2022-03-29 17:23:45 +02:00
Mark Mercado
d77ac9e29d
feat(charm): add plugin for charm (#10803) 2022-03-29 11:45:20 +02:00
Carlo Sala
3f214329d6
chore: removing old completion code (#10616) 2022-03-28 13:38:49 +02:00
Adam Pike
dbadfa0810
refactor(1password): support CLI 2 and soft-deprecate CLI 1 (#10787)
This change still supports CLI 1, but shows a deprecation warning
on the first run of `opswd`. Support for CLI 1 shall be removed
in the near future.

Closes #10787

Co-authored-by: Marc Cornellà <hello@mcornella.com>
2022-03-26 15:16:19 +01:00
Marc Cornellà
a64d940377
refactor(1password): extract opswd function 2022-03-26 15:10:56 +01:00
Suchandra Thapa
4dce175e0e
feat(fzf): support fzf installed with MacPorts (#10794) 2022-03-24 12:21:36 +01:00
Carlo Sala
50113a53f3
feat(toolbox): add plugin to show toolbox prompt info (#10685) 2022-03-22 22:39:37 +01:00
Wayne Lloyd
c96fc233c4
fix(gpg-agent): suppress errors from gpgconf (#10769) 2022-03-18 13:11:00 +01:00
Leon
f0b5cb1330
feat(terraform): add alias tfo for terraform output (#10667) 2022-03-18 13:09:05 +01:00
Marc Cornellà
3459768745 perf(dash): improve dash completion performance 2022-03-14 13:19:00 +01:00
Marc Cornellà
c4699f8ee1 fix(dash): fix "no application knows how to open URL" error (#10767)
Fixes #10767
2022-03-14 13:19:00 +01:00
Marc Cornellà
40f49342f5 fix(rails): bundle more up-to-date zsh-completions completion version
Source: https://github.com/zsh-users/zsh-completions/blob/55d07cc/src/_rails
2022-03-07 22:37:04 +01:00
romanch
98ed582e6a feat(rails): add fmns alias for foreman start (#9600)
Closes #9600
2022-03-07 22:37:04 +01:00
Marc Cornellà
47d313c904 chore(rails): fix comments and docs 2022-03-07 22:37:04 +01:00
Alexey Poimtsev
3075d0c0ab feat(rails)!: run old rake aliases with rails (#9601)
BREAKING CHANGE: we've updated the aliases that run `rake` to use
`rails` instead because that's how they are run since Rails v5.
The old `rake` aliases can still be run by using the `rk` prefix
(e.g. the `rake test` alias has been changed from `rt` to `rkt`).

Closes #9601
Closes #9813
Fixes #10696

Co-authored-by: Vsevolod Voloshyn <seva.voloshin@gmail.com>
2022-03-07 22:37:04 +01:00
Marc Cornellà
9350e1ff87
fix(coffee): fix completion bug on missing coffee command (#10759)
This commit fixes the error

  _coffee:49: bad math expression: operand expected at `< 2 '

when the coffee command is missing or the `coffee --version` command fails.

It also uses is-at-least to check for the cut-off version for suggesting
`--lint` and `--require` arguments, instead of using `cut` multiple times.

Fixes #10759
2022-03-07 11:13:18 +01:00
Ivan
93b348b172
feat(rvm): add rb31 shortcut to use ruby 3.1 (#10745) 2022-03-07 10:58:18 +01:00
Eric Semeniuc
d4c939d61e
feat(kubectl): add aliases for replicasets (#10100) 2022-03-07 10:43:05 +01:00
Vitul Rana
3343891ea6
feat(kubectl): add aliases for job management (#9992) 2022-03-07 10:38:56 +01:00
Carlo Sala
f96a900ea3
feat(fzf)!: default to using fd before rg (#10757)
BREAKING CHANGE: if both `fd` and `rg` are installed, default to using `fd`. This
is the recommendation of the ripgrep author, and it's been found to be faster.
If you want to force using `rg`, set the `FZF_DEFAULT_COMMAND` variable.
2022-03-05 19:18:56 +01:00
JM" (Jason Meridth)
eaa6024421
feat(autoenv): add path for Apple Silicon Homebrew (#10749) 2022-03-02 20:47:55 +01:00
Marc Cornellà
511ed65408
fix(aws): allow empty prefix and suffix in prompt function (#10744)
Fixes #10744
2022-02-28 10:03:02 +01:00
Carlo Sala
e934857537
fix(kubectl): support completion for snap installs (#10727) 2022-02-24 19:23:41 +01:00
Carlo Sala
97e6989729
fix(helm): support completion for snap installs (#10723) 2022-02-24 19:23:15 +01:00
Marc Cornellà
6f1036293c
refactor(copydir)!: deprecate plugin in favor of copypath
BREAKING CHANGE: the `copydir` plugin is deprecated. Instead of
using `copydir`, use `copypath` which also supports copying
the path of other files or directories specified.
2022-02-22 11:25:31 +01:00
Marc Cornellà
11a23144ad
feat(copypath): add plugin to copy file paths to clipboard (#7569)
Closes #7569
Closes #10714
2022-02-22 11:25:09 +01:00
Marc Cornellà
3427da4057
fix(dotenv): actually exit when .env syntax is broken 2022-02-18 19:41:21 +01:00
Carlo Sala
02b52a03a5
feat(fd): update fd completion to v8.3.2 (#10688)
Source: https://github.com/sharkdp/fd/blob/v8.3.2/contrib/completion/_fd
2022-02-11 21:47:44 +01:00
Carlo Sala
5fad26ca4f
feat(ripgrep): update rg completion to v13.0.0 (#10687)
Source: https://github.com/BurntSushi/ripgrep/blob/13.0.0/complete/_rg
2022-02-11 20:45:09 +01:00
Sam Cook
6396dfb97f
fix(kubectx): don't error on missing k8s context (#10675) 2022-02-10 17:00:45 +01:00
Zachary Cutlip
1e615b71d6
fix(virtualenvwrapper): only deactivate if virtual env is still present (#10671) 2022-02-10 16:25:23 +01:00
sed-i
aaaa55424a
refactor(juju)!: use the jsh prefix for juju show-* commands (#10426)
BREAKING CHANGE: some aliases have been renamed to be consistent with the rest.
Mainly, aliases for `juju show-` commands are renamed to `jsh*`. This also means
that `jsh` and `jshc` have been renamed to `jssh` and `jsshc`. Have a look at the
README for the complete alias changes.
2022-02-10 11:42:24 +01:00
sed-i
564a60608c
style(juju)!: don't show storage status in wjst for consistency (#10426)
BREAKING CHANGE: `wjst` will no longer show storage in the status
output. This is done for consistency with the `jst` and `jsts`
aliases.
2022-02-10 11:42:23 +01:00
sed-i
cdd2d6efc6
feat(juju): introduce additional juju aliases (#10426) 2022-02-10 11:42:23 +01:00