- 16 Dec, 2020 1 commit
-
-
Roman Perepelitsa authored
*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% |
-
- 14 Dec, 2020 4 commits
-
-
Marc Cornellà authored
Closes #9515 Closes #9516
-
Patrick Harrison authored
"paste" on macOS requires a '-' to signify that the standard input is used. Without the '-' character, the command errors out.
-
Marc Cornellà authored
-
Patrick Harrison authored
"shuf" is not a standard command on MacOS and requires installation of the brew coreutils package
-
- 13 Dec, 2020 2 commits
-
-
Matt Lewin authored
-
Aaron Toponce authored
-
- 12 Dec, 2020 3 commits
-
-
Marc Cornellà authored
This also allows the option to put extra paragraphs after the BREAKING CHANGE message while properly displaying the breaking change message. Useful, for example, to add signed-off or co-authored lines.
-
Marc Cornellà authored
Fixes #9505
-
Aaron Toponce authored
-
- 11 Dec, 2020 1 commit
-
-
Marc Cornellà authored
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
-
- 10 Dec, 2020 3 commits
-
-
Marc Cornellà authored
BREAKING CHANGE: the git config option to skip running `git_prompt_info` has changed from `oh-my-zsh.hide-status` to `oh-my-zsh.hide-info` (#9188).
-
Bruno Borges authored
Show the remote branch the local branch is tracking if `ZSH_THEME_GIT_SHOW_UPSTREAM` is set, like so: `ZSH_THEME_GIT_SHOW_UPSTREAM=1`. Co-authored-by: Marc Cornellà <marc.cornella@live.com>
-
Marc Cornellà authored
-
- 09 Dec, 2020 4 commits
-
-
Marc Cornellà authored
BREAKING CHANGE: in `common-aliases`, the `fd` alias won't be defined if `fd` is installed (https://github.com/sharkdp/fd).
-
Marc Cornellà authored
-
Rohit Goswami authored
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
-
Mark Mercado authored
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
-
- 08 Dec, 2020 1 commit
-
-
Joseph Heyburn authored
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
-
- 07 Dec, 2020 6 commits
-
-
Marc Cornellà authored
-
ratijas authored
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
-
Veesar authored
-
Marc Cornellà authored
BREAKING CHANGE: the `upgrade_oh_my_zsh` function now calls `omz update` directly.
-
Marc Cornellà authored
Also fixed a call to a defunct display:type-header function in displaying breaking changes.
-
Marc Cornellà authored
Fixes #9495
-
- 05 Dec, 2020 1 commit
-
-
赵崇延 authored
-
- 04 Dec, 2020 3 commits
-
-
Marc Cornellà authored
-
Marc Cornellà authored
-
Marc Cornellà authored
-
- 03 Dec, 2020 1 commit
-
-
Stimim Chen authored
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>
-
- 02 Dec, 2020 1 commit
-
-
Marc Cornellà authored
I used _ which is a convention in other languages, but in shell scripting $_ is a special variable set by the shell, and in Zsh versions older than 5.0.6 it complains for being a `read-only variable`. Fixes #9482
-
- 01 Dec, 2020 1 commit
-
-
Marc Cornellà authored
-
- 30 Nov, 2020 4 commits
-
-
Marc Cornellà authored
-
Marc Cornellà authored
-
Marc Cornellà authored
-
Marc Cornellà authored
-
- 26 Nov, 2020 1 commit
-
-
Marc Cornellà authored
-
- 25 Nov, 2020 1 commit
-
-
Marc Cornellà authored
-
- 22 Nov, 2020 1 commit
-
-
Eugéne Roux authored
-
- 20 Nov, 2020 1 commit
-
-
Mohamed El Mouctar Haidara authored
-