diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh index c78531db1..6f3d483b9 100644 --- a/plugins/aws/aws.plugin.zsh +++ b/plugins/aws/aws.plugin.zsh @@ -241,7 +241,7 @@ function aws_regions() { function aws_profiles() { aws --no-cli-pager configure list-profiles 2> /dev/null && return [[ -r "${AWS_CONFIG_FILE:-$HOME/.aws/config}" ]] || return 1 - grep --color=never -Eo '\[.*\]' "${AWS_CONFIG_FILE:-$HOME/.aws/config}" | sed -E 's/^[[:space:]]*\[(profile)?[[:space:]]*([^[:space:]]+)\][[:space:]]*$/\2/g' + command grep -Eo '^[[:space:]]*\[[[:space:]]*(profile[[:space:]]+)?[^][:space:]]+[[:space:]]*\]' "${AWS_CONFIG_FILE:-$HOME/.aws/config}" | command sed -E 's/^[[:space:]]*\[[[:space:]]*(profile[[:space:]]+)?([^][:space:]]+)[[:space:]]*\]$/\2/' } function _aws_regions() { diff --git a/plugins/rails/rails.plugin.zsh b/plugins/rails/rails.plugin.zsh index a01a2368b..24bc9e42d 100644 --- a/plugins/rails/rails.plugin.zsh +++ b/plugins/rails/rails.plugin.zsh @@ -139,7 +139,6 @@ function rdsl() { _rails_db_command db:schema:load "$@" } # legacy stuff alias sc='ruby script/console' -alias sd='ruby script/destroy' alias sd='ruby script/server --debugger' alias sg='ruby script/generate' alias sp='ruby script/plugin' diff --git a/plugins/safe-paste/safe-paste.plugin.zsh b/plugins/safe-paste/safe-paste.plugin.zsh index c7079059b..36135aa6e 100644 --- a/plugins/safe-paste/safe-paste.plugin.zsh +++ b/plugins/safe-paste/safe-paste.plugin.zsh @@ -11,7 +11,6 @@ # Load bracketed-paste-magic if zsh version is >= 5.1 autoload -Uz is-at-least if is-at-least 5.1; then - set zle_bracketed_paste # Explicitly restore this zsh default autoload -Uz bracketed-paste-magic zle -N bracketed-paste bracketed-paste-magic return ### The rest of this file is NOT executed on zsh version >= 5.1 ### diff --git a/plugins/suse/README.md b/plugins/suse/README.md index e1e3aad29..359716989 100644 --- a/plugins/suse/README.md +++ b/plugins/suse/README.md @@ -71,7 +71,6 @@ Related: [#9798](https://github.com/ohmyzsh/ohmyzsh/pull/9798). | Alias | Commands | Description | | ----- | ------------------- | ---------------------------------------- | | zar | `sudo zypper ar` | add a repository | -| zcl | `sudo zypper clean` | clean cache | | zlr | `zypper lr` | list repositories | | zmr | `sudo zypper mr` | modify repositories | | znr | `sudo zypper nr` | rename repositories (for the alias only) | diff --git a/plugins/suse/suse.plugin.zsh b/plugins/suse/suse.plugin.zsh index 56bc6f1c5..7407a04d5 100644 --- a/plugins/suse/suse.plugin.zsh +++ b/plugins/suse/suse.plugin.zsh @@ -38,7 +38,6 @@ alias zwp='zypper --no-refresh wp' #Repositories commands alias zar='sudo zypper ar' -alias zcl='sudo zypper clean' alias zlr='zypper lr' alias zmr='sudo zypper mr' alias znr='sudo zypper nr'