Marc Cornellà
8ae373130c
fix(cli): respect `ZDOTDIR` in plugin/theme change commands ( #10520 )
...
Fixes #10520
4 years ago
Marc Cornellà
4b4cc9a4a5
fix(cli): fix plugin and theme suggestions in completion for older zsh versions
4 years ago
Marc Cornellà
9a3d853481
fix: quote % characters in ruby prompt info functions
4 years ago
Marc Cornellà
428f815169
fix(lib): %-quote git prompt functions
4 years ago
Marc Cornellà
f0f792fa6b
feat(cli): add `omz version` command
4 years ago
Paul Scott
0314604384
fix(lib): don't error if `INSIDE_EMACS` is not defined ( #10443 )
4 years ago
Marc Cornellà
a263cdac9c
fix(lib): fix potential command injection in `title` and `spectrum` functions
...
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.
4 years ago
Marc Cornellà
6cb41b70a6
fix(lib): fix `omz_urldecode` unsafe eval bug
...
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.
4 years ago
Marc Cornellà
1d166eaaa1
fix(cli): avoid `git -C` for compatibility with git < v1.8.5 ( #10404 )
4 years ago
Marc Cornellà
9a11b34101
fix(cli): fix check for completion files in `omz plugin load`
4 years ago
Kevin Burke
e86c6f5e7f
style: use `-n` flag in `head` and `tail` commands ( #10391 )
...
Co-authored-by: Marc Cornellà <hello@mcornella.com>
4 years ago
Richard Mitchell
bf88ff3f90
fix(lib): fix `1` alias to `cd` to directory 1 in stack ( #10370 )
4 years ago
Sina Tak Tehrani
1e5e834e0f
fix(cli): exit `omz update` with correct error code ( #10342 )
4 years ago
michael-yuji
f82aa81931
fix(lib): fix `diff --color` argument check for BSD systems ( #10269 )
5 years ago
Pooya Vahidi
07cdd7a539
fix(lib): fix status exit code check in `git_prompt_status` ( #10275 )
5 years ago
Marc Cornellà
b621eee21f
fix(cli): fix zsh array syntax for szh 5.0.2
5 years ago
Monson Shao
be4a952972
feat(cli)!: add `omz reload` command and deprecate `zsh_reload` plugin ( #9078 )
...
BREAKING CHANGE: the `zsh_reload` plugin is deprecated. Instead of using its `src`
function, use `omz reload` or `exec zsh` to reload zsh after making changes to
your `.zshrc` file.
Closes #9078
5 years ago
Marc Cornellà
3c209b00d6
feat(cli): show current theme in `omz theme list`
...
Fixes #9540
5 years ago
Marc Cornellà
5f99eb5afd
fix(cli): get branch and tags from OMZ folder in `omz changelog` completion
5 years ago
Celestino Gomes
c7a55086e1
feat(lib): don't correct `su` command arguments ( #10214 )
5 years ago
Marc Cornellà
54e3e8ef54
fix(lib): fix automatic title abort inside Emacs ( #10124 )
...
Closes #10124
Co-authored-by: Paul Schorfheide <pschorf2@gmail.com>
Co-authored-by: Alastair Rankine <alastair@girtby.net>
5 years ago
Simon Rogers
16de514047
feat(lib): allow setting custom completion dots sequence ( #9424 )
...
Closes #9424
Closes #9703
Co-authored-by: mortezadadgar <mortezadadgar97@gmail.com>
Co-authored-by: Marc Cornellà <hello@mcornella.com>
5 years ago
Marc Cornellà
cbb534267a
feat(cli): add `theme set` subcommand to change theme in .zshrc
...
Fixes #9087
5 years ago
Marc Cornellà
8dedf26294
style(cli): print usage messages to stderr
5 years ago
Marc Cornellà
7a4f4ad91e
fix(lib): fix clipboard copy on Termux
5 years ago
Marc Cornellà
bc7ce982dd
style(cli): fill rows in column output in theme and plugin `list` commands
5 years ago
Marc Cornellà
bf888680ea
refactor(cli): extract substitution awk script in `plugin disable`
5 years ago
Marc Cornellà
708bbe12c5
fix(cli): fix multiple errors in `plugin disable/enable`
5 years ago
pollyduan
4455c13e06
feat(cli): add subcommands for plugin `enable` and `disable` ( #9869 )
...
Co-authored-by: Marc Cornellà <hello@mcornella.com>
5 years ago
James Eapen
6e4c9df4a4
feat(cli): add `plugin load` subcommand ( #9872 )
...
Fixes #9672
Co-authored-by: Marc Cornellà <hello@mcornella.com>
5 years ago
Marc Cornellà
7eeb1e193d
refactor(lib): refactor take functions
5 years ago
Marc Cornellà
c249288151
feat(lib): add `mkcd` as equivalent to `takedir` ( #9749 )
...
Fixes #9749
5 years ago
Marc Cornellà
e32d4b1e19
fix(lib): remove `kubectx` stub prompt function from lib
...
Fixes #9974
5 years ago
Stanisław Szydło
5152d381bb
feat(kubectx): adding a new plugin for 'kubectx' ( #6114 )
...
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
Co-authored-by: Robby Russell <robby@planetargon.com>
5 years ago
Mitchel Humpherys
f68d65d32a
feat(take): add support to `take' for taking remote urls ( #2029 )
...
Download, extract, and cd into the resulting directory.
Co-authored-by: Mitchel Humpherys <mitchelh@codeaurora.org>
5 years ago
Marc Cornellà
02d07f3e3d
fix: use `$USERNAME` guaranteed to always be defined in zsh
...
Fixes #9701
5 years ago
Vlad Korolev
0ab87c26c1
fix(terraform): use faster method to get workspace ( #9709 )
...
Also add tf_prompt_info to the list of prompt functions so theme writers are aware of it
5 years ago
Cai Cooper
6fbad5bf72
fix(update): don't error on upgrade no-op ( #9685 )
...
* Don't error on upgrade no-op
No error code is required for a non failure scenario.
* Manually check whether changes were pulled in `omz update`
Co-authored-by: Marc Cornellà <hello@mcornella.com>
5 years ago
Marc Cornellà
8b37f817c2
fix(lib): use -N syntax in `head` and `tail` to support Solaris ( #6391 )
...
Closes #6391
Co-authored-by: Sergey Mashkov <cy6erGn0m@gmail.com>
5 years ago
Kyle Gerard Felker
c9bf8b4a84
fix(lib): update Emacs terminal detection in `title` function ( #9577 )
...
Environment variable EMACS was replaced by INSIDE_EMACS
5 years ago
Marc Cornellà
6b57839292
fix(CLI): show symlinked themes in `omz theme list`
5 years ago
Fernando Crespo
9e5f280f87
feat(CLI): add `plugin info` subcommand ( #9452 )
...
Co-authored-by: Fernando Crespo <fxcrespo@iMac-44054.local>
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
5 years ago
Seamile
88ffc2f666
fix(lib): mark changes as MODIFIED on 'MM' in `git_prompt_status` ( #9552 )
...
In the output of `git status -sb`, 'MM' indicates there are both added and modified changes.
This change marks that case as MODIFIED instead of ADDED.
5 years ago
Marc Cornellà
0f6836701d
fix(CLI): properly get zsh command in `omz update` ( #9558 )
...
Zsh versions older than 5.3 don't have ZSH_ARGZERO, so use an alternative
method to get the zsh command.
Fixes #9558
5 years ago
Marc Cornellà
28265812f8
chore!: notify breaking change in `git_prompt_info`
...
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 ).
5 years ago
Bruno Borges
2f39c68ab0
feat(lib): show upstream branch in `git_prompt_info` ( #9188 )
...
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>
5 years ago
Marc Cornellà
4b7dba5b75
feat(lib)!: soft-deprecate `upgrade_oh_my_zsh` function for everybody
...
BREAKING CHANGE: the `upgrade_oh_my_zsh` function now calls `omz update` directly.
5 years ago
Marc Cornellà
5a888ff4ac
fix(updater): don't show changelog when running unattended update ( #9495 )
...
Fixes #9495
5 years ago
Marc Cornellà
1aa2b18e29
feat(CLI): add `--unattended` flag to `omz update` to not reload zsh ( #9187 )
5 years ago
Marc Cornellà
7712da89ee
feat(CLI): add `omz changelog` command
5 years ago