Commit graph

6611 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
Marc Cornellà
dfee71c773
Revert "fix(lib): don't return clean with hide-dirty=1 in parse_git_dirty" (#10927) 2022-05-12 18:25:02 +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
Will LE
4674384d1a
fix(lib): don't return clean with hide-dirty=1 in parse_git_dirty (#10897) 2022-05-12 11:31:00 +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
Carlo Sala
a26d72baa2
fix(init): check for unsafe directories in fpath (#10672) 2022-04-19 19:23:54 +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
Olivia (Zoe)
eb00b95d26
chore: minor documentation tweaks (#10853) 2022-04-14 16:31:17 +02:00
Marc Cornellà
30e23a643b
refactor(cli): fix commit.gpgsign test in omz pr test 2022-04-14 12:14:40 +02:00
Marc Cornellà
f1a5fb5ee9
fix(cli): fix commit.gpgsign test in omz pr test
Since `set -e` is enabled, when `commit.gpgsign` is not set the
`git config` command would show an error. Given that it is technically
not ignored, the subshell would exit.

With this change, the `commit.gpgsign` setting is properly tested
by doing the fallback test if the command fails, so no exit status
code ends up quiting the subshell.
2022-04-14 12:08:59 +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
Marc Cornellà
846f417eb8
feat(updater): check for typed input before automatically updating (#10830) 2022-04-10 10:20:51 +02:00
PierreD
fcceeb6664
fix(frisk): fix color typo in PS2 (#10839) 2022-04-09 15:18:24 +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à
4d9e5ce9a7
ci(project): sort issues and PRs when reopened 2022-04-04 21:40:08 +02:00
Marc Cornellà
53863e7b3f
chore: remove obsolete spelling-action files 2022-03-31 14:01:17 +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
Carlo Sala
141d06b602
fix(cli): turn of commit.gpgsign compatibly with git v1.7.1 (#10679)
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2022-03-31 09:27:58 +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
Marc Cornellà
9e967b4ecc
fix(installer): exit install directory on setup (#10804) 2022-03-28 16:33:03 +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
thinszx
4a988c4660
fix(updater): change remote using deprecated git: protocol (#10779) 2022-03-17 12:54:47 +01:00
Bunyamin Shabanov
0f2715bb45
docs: add Table of Contents to README (#10766)
Co-authored-by: Mohan Sha <mohansha@outlook.com>
2022-03-14 18:09:45 +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à
c10241f3d1
chore: add Carlo sponsorship 2022-03-10 12:58:46 +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à
4f0b680248
fix(installer): fix $HOME setting if getent is not found (macOS)
Related: https://github.com/ohmyzsh/ohmyzsh/pull/10713/files#r820219899
2022-03-07 11:41:02 +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