summaryrefslogtreecommitdiff
path: root/lib/cli.zsh
AgeCommit message (Collapse)Author
2022-10-18fix(cli): avoid using `column` (#11271)Carlo
2022-10-12fix(cli): change unrecognized `\s` in BSD awk (#11146)Marc Cornellà
In BSD awk, \s is not a valid sequence interchangeable with "space or tab characters" as it is in GNU awk. This fix uses [ \t] instead, which is all the possibilities that we need to contemplate when reading the .zshrc file. Fixes #11146
2022-08-02fix(cli): make `omz` honour symlinks when changing `.zshrc` (#11082)Ben Walton
2022-04-14refactor(cli): fix `commit.gpgsign` test in `omz pr test`Marc Cornellà
2022-04-14fix(cli): fix `commit.gpgsign` test in `omz pr test`Marc Cornellà
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-03-31fix(cli): turn of `commit.gpgsign` compatibly with git v1.7.1 (#10679)Carlo Sala
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2022-02-10fix(cli): disable GPG signing in `omz pr test` to avoid key prompt (#10677)Carlo Sala
2022-02-02fix(cli): allow `omz` commands to be used in a script (#10645)Marc Cornellà
The commands `omz plugin {enable,disable}` and `omz theme set` automatically reload the zsh session on success. With this change, the CLI checks whether the commands are run in an interactive session before reloading the zsh session. This change also conditionally sets the completion function for `omz` so that it's not done in a non-interactive session.
2022-01-24fix(cli): make sure to run `zsh` command if an alias exists (#9737)Marc Cornellà
Fixes #9737
2022-01-22fix: do not call chpwd hooks in subshellsMarc Cornellà
2022-01-17refactor(cli): use self-referencing in subcommand functionsMarc Cornellà
2022-01-13fix: get branch name first in `omz version` and changelogMarc Cornellà
2022-01-09fix(cli): follow symlinks in plugin or theme completionsMarc Cornellà
2021-12-21fix(cli): respect `ZDOTDIR` in plugin/theme change commands (#10520)Marc Cornellà
Fixes #10520
2021-12-16fix(cli): fix plugin and theme suggestions in completion for older zsh versionsMarc Cornellà
2021-11-30feat(cli): add `omz version` commandMarc Cornellà
2021-11-10fix(cli): avoid `git -C` for compatibility with git < v1.8.5 (#10404)Marc Cornellà
2021-11-09fix(cli): fix check for completion files in `omz plugin load`Marc Cornellà
2021-10-25fix(cli): exit `omz update` with correct error code (#10342)Sina Tak Tehrani
2021-10-05fix(cli): fix zsh array syntax for szh 5.0.2Marc Cornellà
2021-10-04feat(cli)!: add `omz reload` command and deprecate `zsh_reload` plugin (#9078)Monson Shao
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
2021-09-30feat(cli): show current theme in `omz theme list`Marc Cornellà
Fixes #9540
2021-09-30fix(cli): get branch and tags from OMZ folder in `omz changelog` completionMarc Cornellà
2021-08-18feat(cli): add `theme set` subcommand to change theme in .zshrcMarc Cornellà
Fixes #9087
2021-08-18style(cli): print usage messages to stderrMarc Cornellà
2021-08-17style(cli): fill rows in column output in theme and plugin `list` commandsMarc Cornellà
2021-08-17refactor(cli): extract substitution awk script in `plugin disable`Marc Cornellà
2021-08-17fix(cli): fix multiple errors in `plugin disable/enable`Marc Cornellà
2021-08-17feat(cli): add subcommands for plugin `enable` and `disable` (#9869)pollyduan
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2021-08-13feat(cli): add `plugin load` subcommand (#9872)James Eapen
Fixes #9672 Co-authored-by: Marc Cornellà <hello@mcornella.com>
2021-03-01fix(update): don't error on upgrade no-op (#9685)Cai Cooper
* 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>
2021-01-05fix(CLI): show symlinked themes in `omz theme list`Marc Cornellà
2021-01-03feat(CLI): add `plugin info` subcommand (#9452)Fernando Crespo
Co-authored-by: Fernando Crespo <fxcrespo@iMac-44054.local> Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-31fix(CLI): properly get zsh command in `omz update` (#9558)Marc Cornellà
Zsh versions older than 5.3 don't have ZSH_ARGZERO, so use an alternative method to get the zsh command. Fixes #9558
2020-12-07fix(updater): don't show changelog when running unattended update (#9495)Marc Cornellà
Fixes #9495
2020-12-04feat(CLI): add `--unattended` flag to `omz update` to not reload zsh (#9187)Marc Cornellà
2020-11-30feat(CLI): add `omz changelog` commandMarc Cornellà
2020-11-30fix(updater): correctly restart the zsh session when the update pulled changesMarc Cornellà
2020-11-30refactor(updater): switch to Zsh execution and fix git remote detection logicMarc Cornellà
2020-10-20lib: follow symlinked plugins in `plugin list` CLI commandMarc Cornellà
See https://github.com/ohmyzsh/ohmyzsh/issues/9087#issuecomment-712460275
2020-10-18lib: allow bare output in theme and plugins list commandMarc Cornellà
2020-10-18lib: use `column` to format plugin and theme list CLI commandsMarc Cornellà
2020-10-10lib: fix `omz help` and rewordMarc Cornellà
2020-10-10lib: fix fmt removing ESC characters in theme and plugin list CLI commandsMarc Cornellà
2020-10-09lib: fix formatting in `omz pr clean` CLI commandMarc Cornellà
2020-10-09lib: add plugin and theme subcommands and fix `omz pr clean`Marc Cornellà
- Add plugin and theme subcommand Fixes #8961 - Add confirmation prompt to `omz pr clean` command - Correct behavior on invalid answers on confirmation prompts If an invalid option is supplied, don't proceed with the potentially destructive action. Co-authored-by: Rishabh Bohra <rishabhbohra01@gmail.com>
2020-08-18Remove zsh session restart on omz update and upgrade_oh_my_zshMarc Cornellà
2020-08-17Fix upgrade_oh_my_zsh function deprecationMarc Cornellà
2020-08-04cli: add update command (#9094)Dario Vladović
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-07-03cli: beauty touches on 'omz pr test' commandMarc Cornellà