summaryrefslogtreecommitdiff
path: root/plugins
AgeCommit message (Collapse)Author
2021-01-01feat(docker): update completion to upstream version (#9470)YantaoZhao
2020-12-31feat(grc): source `grc.zsh` instead of hard-coding its content (#9553)hjpotter92
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-30fix(brew)!: update `bcubc` alias to use `brew upgrade --cask` (#9501)Josh E. Roberts
BREAKING CHANGE: changes deprecated `brew cask reinstall $(...)` alias to use `brew upgrade --cask` instead. If you don't have this command, run `brew update` to get the latest Homebrew CLI version. Co-authored-by: jakepez <jake@findjake.com>
2020-12-27fix(genpass): use `log()` instead of `log2()` for zsh < 5.6 (#9548)Marc Cornellà
Fixes #9548
2020-12-16fix(genpass): improve performance and usability and fix bugs (#9520)Roman Perepelitsa
*Bugs* The following bugs have been fixed: - All generators ignored errors from external commands. For example, if `/usr/share/dict/words` was unreadable, `genpass-xkcd` would print "0-" as a password and return success. - All generators silently ignored the argument if it wasn't a number. For example, `genpass-apple -2` was generating one password and not printing any errors. - All generators silently ignored extra arguments. For example, `genpass-apple -n 2` was generating one password and not printing any errors. - `genpass-xkcd` was generating passwords with less than 128 bits of security margin in contradiction to documentation. The smaller the dictionary size, the weaker the passwords it was generating. For a dictionary with 27 words, `genpass-xkcd` was generating passwords with 93 bits of security margin (`log2(27!)`). - The source of random data used by `genpass-xkcd` was not cryptographically secure in contradiction to documentation. See: https://www.gnu.org/software/coreutils/manual/html_node/Random-sources.html - `genpass-apple` could generate a password with non-ascii characters depending on user locale. For example, passwords could contain 'İ' for users with Turkish locale. - `genpass-apple` didn't work with `ksh_arrays` shell option. - `genpass-xkcd` was printing spurious errors with `ksh_arrays` shell option. - `genpass-xkcd` was producing too short (weak) or too strong (long) and/or printing errors when `IFS` was set to non-default value. - All generators were printing fewer passwords than requested and returning success when passed a very large number as an argument. *Usability* Generators are now implemented as self-contained executable files. They can be invoked from scripts with no additional setup. Generators no longer depend on external commands. The only dependencies are `/dev/urandom` and, for `genpass-xkcd`, `/usr/share/dict/words`. All generators used to silently ignore all arguments after the first and the first argument if it wasn't a number. For example, both `genpass-apple -2` and `genpass-apple -n 2` were generating one password and not printing any errors. Now these print an error and fail. *Performance* The time it takes to load the plugin has been greatly reduced. This translates into faster zsh startup when the plugin is enabled. Incidentally, two generators out of three have been sped up to a large degree while one generator (`genpass-xkcd`) has gotten slower. This is unlikely to matter one way or another unless generating a very large number of passwords. In the latter case `genpass-xkcd` is now also faster than it used to be. The following table shows benchmark results from Linux x86-64 on i9-7900X. The numbers in the second and third columns show how many times a given command could be executed per second. Higher numbers are better. command | before (Hz) | after (Hz) | speedup | ----------------------------|------------:|-----------:|--------:| `source genpass.plugin.zsh` | 4810 | 68700 | +1326% | `genpass-apple` | 30.3 | 893 | +2846% | `genpass-monkey` | 203 | 5290 | +2504% | `genpass-xkcd` | 34.4 | 14.5 | -58% | `genpass-xkcd 1000` | 0.145 | 0.804 | +454% |
2020-12-14fix(genpass): add compatibility for macOS paste commandPatrick Harrison
"paste" on macOS requires a '-' to signify that the standard input is used. Without the '-' character, the command errors out.
2020-12-14fix(genpass): warn if no wordlist is foundMarc Cornellà
2020-12-14fix(genpass): check for presence of shuf command.Patrick Harrison
"shuf" is not a standard command on MacOS and requires installation of the brew coreutils package
2020-12-13fix(genpass): fix grep regex in `genpass-xkcd` for FreeBSD version (#9514)Matt Lewin
2020-12-13fix(genpass): only use words with ASCII characters in `genpass-xkcd` (#9508)Aaron Toponce
2020-12-12feat(plugins): add genpass plugin with 3 distinct password generators (#9502)Aaron Toponce
2020-12-11fix(composer): autoload `_cache_invalid` for antigen compatibilityMarc Cornellà
Antigen doesn't call `compinit` until the user prompt is about to be shown, which means `_cache_invalid` isn't automatically autoloaded. This patch fixes that, though we should work towards a better caching mechanism. Fixes #9490
2020-12-10refactor(hanami): change global aliases and clean up READMEMarc Cornellà
2020-12-09fix(common-aliases)!: don't overshadow `fd` if installed (#9162)Marc Cornellà
BREAKING CHANGE: in `common-aliases`, the `fd` alias won't be defined if `fd` is installed (https://github.com/sharkdp/fd).
2020-12-09Document fd alias change in READMEMarc Cornellà
2020-12-10fd: Rework command to be more idiomaticRohit Goswami
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-09feat(plugins): add grc plugin for Generic Colouriser (#9315)Mark Mercado
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-08fix(git): silently fail in `git_main_branch` if not in a git repo (#9484)Joseph Heyburn
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-07refactor(archlinux): prevent leaking local variables (#9476)ratijas
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-07feat(wp-cli): add aliases for DB management (#9469)Veesar
2020-12-05fix(command-not-found): show error in Ubuntu when no package is found (#9418)赵崇延
2020-12-03fix(git-prompt): make `gitstatus.py` python3-compatible (#9186)Stimim Chen
check_output() in get_tagname_or_hash() returns bytes instead of str in python3. Decode the return value to utf-8, this works in both python2 and python3. Co-authored-by: Stimim Chen <stimim@google.com>
2020-11-26fix(git-auto-fetch): background `git-fetch-all` and other fixes (#9468)Marc Cornellà
2020-11-25fix(magic-enter): fix various bugs in the plugin (#9466)Marc Cornellà
2020-11-22style(ansible): minor style change (#8356)Eugéne Roux
2020-11-20feat(terraform): add autocompletion for Terraform 0.13 (#9226)Mohamed El Mouctar Haidara
2020-11-20fix(shell-proxy): change NAME env variable for WSL clash (#9447)Septs
2020-11-19feat(gitfast): update to git-completion 1.2 (#9458)Felipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2020-11-19feat(aws): respect optional parameters from the AWS CLI config file (#9453)Roman Danyk
2020-11-12refactor(colored-man-pages): move nroff wrapper and refactor logic in ↵ratijas
`colored` function (#9437)
2020-11-12feat(git): support trunk branches in `git_main_branch` (#9417)Alisson B. Santos
2020-11-11feat(sudo): support aliases to $EDITOR (#9431)Subhaditya Nath
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-11-11docs(aws): add config examples (#9422)Rob Vadai
2020-11-10fix(aws): fix acp function for MFA without role and other fixes (#9426)Marc Cornellà
* fix(aws): don't duplicate aws_prompt_info function in RPROMPT * refactor(aws): clean up logic in acp function and fix session duration input Fixes #9409
2020-11-10docs(thefuck): add description for enabling the plugin (#9433)Nacho González-Garilleti
Add a description about adding thefuck to the plugins list
2020-11-10fix(battery): use `pmset` for battery percentage in macOS (#9364)aimuz
Returns the battery charge consistent with the system battery manager
2020-11-09fix(fzf): consistently ignore .git directory in `FZF_DEFAULT_COMMAND` (#9421)Elyézer Rezende
Be consistent and ignore contents of `.git` directory no matter how FZF_DEFAULT_COMMAND is set.
2020-11-04fix(aws): support MFA for profiles without role to assume (#9411)Maksym
Previously, the plugin only supported MFA for profiles that had a role to assume, specified in role_arn. Now, the plugin supports MFA for profiles without a role to assume. Closes #9408 * refactor(aws plugin): remove dependency on jq Previously, acp command relied on jq. Now that dependency has been removed, as well as some linter suggestions implemented.
2020-10-29aws: split setting profile from changing profile (#9402)Maksym
the change to assume a role when it is specified in configuration broke some workflows. This fix addresses that Fixes #9394
2020-10-29aws: get and set session token if available (#9397)Setu Shah
2020-10-29colorize: add compatibility for zsh < 5.1 (#9400)spreiter
The direct assignment of a local array is not possible in older ZSH version, as used by RHEL/CentOS 7.
2020-10-27gitfast: fetch latest fixes from git-completion (#9390)Felipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2020-10-24aws: add role delegation and MFA support as per IAM Best Practices (#8419)Maksym
* Added role delegation support and MFA support as per IAM Best Practices * fix: grep with color enabled breaks profile parsing * fix: compatible with MacOS basic sed * docs: Added jq as a dependency * feat: added variable session duration, if the role to be assumed permits it. * bug: incorrect assigment for session length * fix: profile extraction failed with some versions of sed Fixed the issue that resulted from merging upstream changes to allow "." in the profile name * fix: broken profile parsing when profile name contains "@"
2020-10-24gitfast: improve command aliases (#9385)Felipe Contreras
So that compdefs with dashes work as well as underscores: compdef _git gc=git_commit Or: compdef _git gc=git-commit The official Zsh Git completion uses dashes, and this way people don't have to change their existing definitions. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2020-10-24gitfast: update to latest upstream and more (#9382)Felipe Contreras
2020-10-21npx: deprecate pluginMarc Cornellà
Fixes #9366
2020-10-21Grammar: remove hyphens from predicate adjective “up to date” (#9356)Lucas Larson
https://english.stackexchange.com/a/180617 https://web.archive.org/web/20190728053012id_/grammarist.com/usage/up-to-date/#text-60
2020-10-21kubectl: add aliases for serviceaccount, daemonsets and cronjob (#9344)Wenli Wan
2020-10-20fzf: add check for OpenSUSE and OpenBSD packages (#9327)Marc Cornellà
2020-10-17kubectl: check for empty cache completion fileMarc Cornellà