From b3923eded99f7f8991a695198a1512277e47d4ce Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Sat, 12 Sep 2020 11:58:47 +0200 Subject: meta: change feature label --- .github/ISSUE_TEMPLATE/feature_request.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 0a8a588db..8c20544c8 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,7 +1,7 @@ --- name: Feature request about: Suggest a feature for Oh My Zsh -labels: 'Type: feature' +labels: 'feature' --- -- cgit v1.2.3-70-g09d2 From 8a93c89bda7e244ed5d32d5b01bd5f72ab695fbf Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Sat, 12 Sep 2020 11:59:06 +0200 Subject: meta: change support label --- .github/ISSUE_TEMPLATE/support.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/support.md b/.github/ISSUE_TEMPLATE/support.md index d2638412e..697f0c0c8 100644 --- a/.github/ISSUE_TEMPLATE/support.md +++ b/.github/ISSUE_TEMPLATE/support.md @@ -1,7 +1,7 @@ --- name: Support about: Request support for any problem you're having with Oh My Zsh -labels: 'Type: support' +labels: 'support' --- -- cgit v1.2.3-70-g09d2 From 814e0b3c25316879b2f86e017701449cc2302ad4 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Mon, 14 Sep 2020 17:14:14 +0200 Subject: docs: fix small typo in README (#9255) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8be05b6f1..eaeae826e 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ _Note that the plugins are separated by whitespace (spaces, tabs, new lines...). #### Using Plugins -Each plugin includes a __README__, documenting it. This README should show the aliases (if the plugin adds any) and extra goodies that are inclued in that particular plugin. +Each plugin includes a __README__, documenting it. This README should show the aliases (if the plugin adds any) and extra goodies that are included in that particular plugin. ### Themes -- cgit v1.2.3-70-g09d2 From 2bc1da7f377e78cdfa74190ffe5baf6c814d0fce Mon Sep 17 00:00:00 2001 From: Alessandro Date: Mon, 14 Sep 2020 19:32:23 +0100 Subject: brew: replace deprecated brew cask outdated command (#9253) --- plugins/brew/README.md | 20 ++++++++++---------- plugins/brew/brew.plugin.zsh | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/plugins/brew/README.md b/plugins/brew/README.md index 44af05225..398d3263c 100644 --- a/plugins/brew/README.md +++ b/plugins/brew/README.md @@ -10,16 +10,16 @@ plugins=(... brew) ## Aliases -| Alias | Command | Description | -|----------|-------------------------------------------------------------|---------------------------------------------------------------------| -| `brewp` | `brew pin` | Pin a specified formula so that it's not upgraded. | -| `brews` | `brew list -1` | List installed formulae or the installed files for a given formula. | -| `brewsp` | `brew list --pinned` | List pinned formulae, or show the version of a given formula. | -| `bubo` | `brew update && brew outdated` | Update Homebrew and all formulae, then list outdated formulae. | -| `bubc` | `brew upgrade && brew cleanup` | Upgrade outdated formulae, then run cleanup. | -| `bubu` | `bubo && bubc` | Do the last two operations above. | -| `bcubo` | `brew update && brew cask outdated` | Update Homebrew and alll formulae, then list outdated casks. | -| `bcubc` | `brew cask reinstall $(brew cask outdated) && brew cleanup` | Update outdated casks, then run cleanup. | +| Alias | Command | Description | +|----------|------------------------------------------------------------- |---------------------------------------------------------------------| +| `brewp` | `brew pin` | Pin a specified formula so that it's not upgraded. | +| `brews` | `brew list -1` | List installed formulae or the installed files for a given formula. | +| `brewsp` | `brew list --pinned` | List pinned formulae, or show the version of a given formula. | +| `bubo` | `brew update && brew outdated` | Update Homebrew and all formulae, then list outdated formulae. | +| `bubc` | `brew upgrade && brew cleanup` | Upgrade outdated formulae, then run cleanup. | +| `bubu` | `bubo && bubc` | Do the last two operations above. | +| `bcubo` | `brew update && brew outdated --cask` | Update Homebrew and all formulae, then list outdated casks. | +| `bcubc` | `brew cask reinstall $(brew outdated --cask) && brew cleanup` | Update outdated casks, then run cleanup. | ## Completion diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh index fdea76c74..c8b1e3568 100644 --- a/plugins/brew/brew.plugin.zsh +++ b/plugins/brew/brew.plugin.zsh @@ -4,5 +4,5 @@ alias brewsp='brew list --pinned' alias bubo='brew update && brew outdated' alias bubc='brew upgrade && brew cleanup' alias bubu='bubo && bubc' -alias bcubo='brew update && brew cask outdated' -alias bcubc='brew cask reinstall $(brew cask outdated) && brew cleanup' +alias bcubo='brew update && brew outdated --cask' +alias bcubc='brew cask reinstall $(brew outdated --cask) && brew cleanup' -- cgit v1.2.3-70-g09d2 From bc9d4b89bb3985a250e5a702a0f2d76a8632cd8a Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Fri, 18 Sep 2020 19:34:17 +0200 Subject: Remove racially-charged language from the codebase The ZSH_THEME_RANDOM_BLACKLIST variable will be deprecated until it's removed 2 months from now. --- README.md | 4 ++-- themes/random.zsh-theme | 11 +++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index eaeae826e..69862eba5 100644 --- a/README.md +++ b/README.md @@ -139,10 +139,10 @@ ZSH_THEME_RANDOM_CANDIDATES=( ) ``` -If you only know which themes you don't like, you can add them similarly to a blacklist: +If you only know which themes you don't like, you can add them similarly to an ignored list: ```shell -ZSH_THEME_RANDOM_BLACKLIST=(pygmalion tjkirch_mod) +ZSH_THEME_RANDOM_IGNORED=(pygmalion tjkirch_mod) ``` ### FAQ diff --git a/themes/random.zsh-theme b/themes/random.zsh-theme index 6cb7cc579..85a8612b7 100644 --- a/themes/random.zsh-theme +++ b/themes/random.zsh-theme @@ -1,3 +1,10 @@ +# Deprecate ZSH_THEME_RANDOM_BLACKLIST +if [[ -n "$ZSH_THEME_RANDOM_BLACKLIST" ]]; then + echo '[oh-my-zsh] ZSH_THEME_RANDOM_BLACKLIST is deprecated. Use `ZSH_THEME_RANDOM_IGNORED` instead.' + ZSH_THEME_RANDOM_IGNORED=($ZSH_THEME_RANDOM_BLACKLIST) + unset ZSH_THEME_RANDOM_BLACKLIST +fi + # Make themes a unique array typeset -Ua themes @@ -11,8 +18,8 @@ else "$ZSH_CUSTOM"/themes/*.zsh-theme(N:t:r) "$ZSH"/themes/*.zsh-theme(N:t:r) ) - # Remove blacklisted themes from the list - for theme in random ${ZSH_THEME_RANDOM_BLACKLIST[@]}; do + # Remove ignored themes from the list + for theme in random ${ZSH_THEME_RANDOM_IGNORED[@]}; do themes=("${(@)themes:#$theme}") done fi -- cgit v1.2.3-70-g09d2 From 38f276a732238008a8d0e4a028a4f112bca56221 Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Fri, 18 Sep 2020 22:02:10 +0200 Subject: docker: document option-stacking setting Fixes #9266 --- plugins/docker/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/plugins/docker/README.md b/plugins/docker/README.md index 241a6a448..fab7aa8f1 100644 --- a/plugins/docker/README.md +++ b/plugins/docker/README.md @@ -10,3 +10,25 @@ plugins=(... docker) A copy of the completion script from the docker/cli git repo: https://github.com/docker/cli/blob/master/contrib/completion/zsh/_docker + +## Settings + +By default, the completion doesn't allow option-stacking, meaning if you try to +complete `docker run -it ` it won't work, because you're _stacking_ the +`-i` and `-t` options. + +[You can enable it](https://github.com/docker/cli/commit/b10fb43048) by **adding +the lines below to your zshrc file**, but be aware of the side effects: + +> This enables Zsh to understand commands like `docker run -it +> ubuntu`. However, by enabling this, this also makes Zsh complete +> `docker run -u` with `docker run -uapprox` which is not valid. The +> users have to put the space or the equal sign themselves before trying +> to complete. +> +> Therefore, this behavior is disabled by default. To enable it: +> +> ``` +> zstyle ':completion:*:*:docker:*' option-stacking yes +> zstyle ':completion:*:*:docker-*:*' option-stacking yes +> ``` -- cgit v1.2.3-70-g09d2 From 93c837fec8e9fe61509b9dff9e909e84f7ebe32d Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Sun, 20 Sep 2020 13:41:21 +0200 Subject: random: add ZSH_THEME_RANDOM_QUIET setting Fixes #9180 Co-authored-by: James Eapen --- themes/random.zsh-theme | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/random.zsh-theme b/themes/random.zsh-theme index 85a8612b7..f0b8e5c18 100644 --- a/themes/random.zsh-theme +++ b/themes/random.zsh-theme @@ -42,4 +42,6 @@ else return 1 fi -echo "[oh-my-zsh] Random theme '${RANDOM_THEME}' loaded" +if [[ -z "$ZSH_THEME_RANDOM_QUIET" ]]; then + echo "[oh-my-zsh] Random theme '${RANDOM_THEME}' loaded" +fi -- cgit v1.2.3-70-g09d2