summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-11-16style(dirhistory): remove use of `eval` completelyMarc Cornellà
2021-11-11fix(themes): fix potential command injection in `pygmalion`, ↵Marc Cornellà
`pygmalion-virtualenv` and `refined` The pygmalion and pygmalion-virtualenv themes unsafely handle git prompt information which results in a double evaluation of this information, so a malicious git repository could trigger a command injection if the user cloned and entered the repository. A similar method could be used in the refined theme. All themes have been patched against this vulnerability.
2021-11-11fix(plugins): fix potential command injection in `rand-quote` and `hitokoto`Marc Cornellà
The `rand-quote` plugin uses quotationspage.com and prints part of its content to the shell without sanitization, which could trigger command injection. There is no evidence that this has been exploited, but this commit removes all possibility for exploit. Similarly, the `hitokoto` plugin uses the hitokoto.cn website to print quotes to the shell, also without sanitization. Furthermore, there is also no evidence that this has been exploited, but with this change it is now impossible.
2021-11-11fix(lib): fix potential command injection in `title` and `spectrum` functionsMarc Cornellà
The `title` function unsafely prints its input without sanitization, which if used with custom user code that calls it, it could trigger command injection. The `spectrum_ls` and `spectrum_bls` could similarly be exploited if a variable is changed in the user's shell environment with a carefully crafted value. This is highly unlikely to occur (and if possible, other methods would be used instead), but with this change the exploit of these two functions is now impossible.
2021-11-11fix(dirhistory): fix unsafe eval bug in back and forward widgetsMarc Cornellà
The plugin unsafely processes directory paths in pop_past and pop_future. This commit fixes that.
2021-11-11fix(lib): fix `omz_urldecode` unsafe eval bugMarc Cornellà
The `omz_urldecode` function uses an eval to decode the input which can be exploited to inject commands. This is used only in the svn plugin and it requires a complex process to exploit, so it is highly unlikely to have been used by an attacker.
2021-11-11fix(dirhistory): fix Up/Down key bindings for Terminal.appMarc Cornellà
Reference: https://github.com/ohmyzsh/ohmyzsh/commit/7f49494#commitcomment-60117011
2021-11-10fix(command-not-found): pass arguments correctly in Termux (#10403)Kirill Molchanov
2021-11-10fix(cli): avoid `git -C` for compatibility with git < v1.8.5 (#10404)Marc Cornellà
2021-11-10fix(updater): avoid `git -C` for compatibility with git < v1.8.5 (#10404)Marc Cornellà
Fixes #10404
2021-11-09refactor(updater): simplify check for available updatesMarc Cornellà
2021-11-09style(frontend-search): rename completion file to `_frontend`Marc Cornellà
2021-11-09fix(cli): fix check for completion files in `omz plugin load`Marc Cornellà
2021-11-09fix(emotty): fix glyphs output width in emotty themeMarc Cornellà
2021-11-09feat(refined): allow selecting git branch by changing prefix to `:` (#10400)Janusz Mordarski
2021-11-09style: use `-n` flag in `head` and `tail` commands (#10391)Kevin Burke
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2021-11-08feat(tmux): set session name with `ZSH_TMUX_DEFAULT_SESSION_NAME` (#9063)Shahin Sorkh
2021-11-08refactor(percol): fix style, bind keys for vi-mode and remove dependenciesMarc Cornellà
2021-11-05refactor(osx): Rename osx plugin to macos (#10341)Jonathan Batchelor
Apple changed the name of their operating system from OS X to macOS a number of years ago. This was overdue! As per issue #10311 * refactor(osx): rename `osx` plugin to `macos` * refactor(macos): Add symbolic link from old `osx` plugin name.
2021-11-05fix(updater): stop update if connection unavailableMarc Cornellà
2021-11-03docs: add Security PolicyMarc Cornellà
2021-11-03fix(command-not-found): pass arguments correctly in NixOS (#10381)amnore
2021-11-02feat(ys): increase color contrast with light color schemes (#10295)Aaron Hutchinson
2021-11-02feat(dirhistory): support urxvt terminal key binding (#8370)Michael Peick
Closes #8370
2021-11-02fix(dirhistory): fix ALT+Up/Down key bindings for Terminal.appMarc Cornellà
2021-11-02docs(dirhistory): document OPT key alternative for macOS and fix styleMarc Cornellà
Fixes #10350
2021-11-02fix(lib): fix `1` alias to `cd` to directory 1 in stack (#10370)Richard Mitchell
2021-10-30chore: fix grammar mistake in `CONTRIBUTING.md` (#10362)Afzal Sayed
2021-10-29feat(xcode): support `Package.swift` as project file in `xc` (#10358)YR Chen
2021-10-27feat(fzf): support getting fzf from nix-darwin (#10355)Christophe Bliard
2021-10-27fix(changelog): fix for `${(@ps:$sep:)var}` construct in zsh < 5.0.8Marc Cornellà
In recent zsh versions, `${(@ps:$sep:)var}` where $sep is a variable containing a separator string and $var is a string with multiple values separated by $sep, the `p` flag makes zsh correctly expand $sep before splitting $var. In versions older than 5.0.8, this doesn't happen, so we use `eval` to get the same effect.
2021-10-26fix(changelog): fix percent escapes in `printf` callsMarc Cornellà
2021-10-26perf(changelog): use regex-match instead of `sed` to parse commit subjectsMarc Cornellà
2021-10-26fix(changelog): go back to ignoring commits from merged branchesMarc Cornellà
2021-10-26perf(changelog): use a single `git log` command to get all commit messagesMarc Cornellà
2021-10-26feat(mix): update `mix` commands and descriptions (#10273)José Camelo Freitas
2021-10-26fix(changelog): don't show more than 40 commits (#10345)Marc Cornellà
Fixes #10345
2021-10-25fix(cli): exit `omz update` with correct error code (#10342)Sina Tak Tehrani
2021-10-23fix(ssh-agent): fix check for running `ssh-agent` process with hidepid /proc ↵Marc Cornellà
(#8492) Fixes #8492
2021-10-20feat(osx): add `freespace` command to clean purgeable disk space (#8762)Rob Vadai
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2021-10-20fix(ruby)!: rename aliases that start with `g` to `ge`Marc Cornellà
BREAKING CHANGE: all `gem` aliases that started with `g` now start with `ge` to fix conflicting names with the `git` plugin. Also, the `ghlp` alias is now renamed `geh`. Have a look at the plugin README for more information. Fixes #10320
2021-10-19feat(ruby): add multiple `gem` aliases (#9005)Marc Cornellà
Mostly empty commit to fix the changelog for merge at 6f4c7f64
2021-10-19Merge branch 'royninja-patch-1'Robby Russell
2021-10-19Swapping gh with ghlp as 'gh' is reserved for the Github CLI. #9005Robby Russell
2021-10-19Merge branch 'patch-1' of https://github.com/royninja/ohmyzsh into ↵Robby Russell
royninja-patch-1
2021-10-18docs(README): document new `zstyle` update settings (#10304)Eric
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2021-10-13feat(updater): add support for terminal hyperlinksMarc Cornellà
2021-10-13feat(obraun): display time with leading zeros (#10289)Igor Gavelyuk
2021-10-11fix(ssh-agent): fix for bad `zstyle` command argumentMarc Cornellà
Fixes #10282
2021-10-11feat(ssh-agent): allow lazy-loading SSH identities (#6309)Marc Cornellà
Fixes #7477