mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-09-29 14:36:04 +02:00
fix: remove shadowed alias definitions and two related defects (#14053)
This commit is contained in:
@@ -241,7 +241,7 @@ function aws_regions() {
|
|||||||
function aws_profiles() {
|
function aws_profiles() {
|
||||||
aws --no-cli-pager configure list-profiles 2> /dev/null && return
|
aws --no-cli-pager configure list-profiles 2> /dev/null && return
|
||||||
[[ -r "${AWS_CONFIG_FILE:-$HOME/.aws/config}" ]] || return 1
|
[[ -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() {
|
function _aws_regions() {
|
||||||
|
|||||||
@@ -139,7 +139,6 @@ function rdsl() { _rails_db_command db:schema:load "$@" }
|
|||||||
|
|
||||||
# legacy stuff
|
# legacy stuff
|
||||||
alias sc='ruby script/console'
|
alias sc='ruby script/console'
|
||||||
alias sd='ruby script/destroy'
|
|
||||||
alias sd='ruby script/server --debugger'
|
alias sd='ruby script/server --debugger'
|
||||||
alias sg='ruby script/generate'
|
alias sg='ruby script/generate'
|
||||||
alias sp='ruby script/plugin'
|
alias sp='ruby script/plugin'
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
# Load bracketed-paste-magic if zsh version is >= 5.1
|
# Load bracketed-paste-magic if zsh version is >= 5.1
|
||||||
autoload -Uz is-at-least
|
autoload -Uz is-at-least
|
||||||
if is-at-least 5.1; then
|
if is-at-least 5.1; then
|
||||||
set zle_bracketed_paste # Explicitly restore this zsh default
|
|
||||||
autoload -Uz bracketed-paste-magic
|
autoload -Uz bracketed-paste-magic
|
||||||
zle -N bracketed-paste bracketed-paste-magic
|
zle -N bracketed-paste bracketed-paste-magic
|
||||||
return ### The rest of this file is NOT executed on zsh version >= 5.1 ###
|
return ### The rest of this file is NOT executed on zsh version >= 5.1 ###
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ Related: [#9798](https://github.com/ohmyzsh/ohmyzsh/pull/9798).
|
|||||||
| Alias | Commands | Description |
|
| Alias | Commands | Description |
|
||||||
| ----- | ------------------- | ---------------------------------------- |
|
| ----- | ------------------- | ---------------------------------------- |
|
||||||
| zar | `sudo zypper ar` | add a repository |
|
| zar | `sudo zypper ar` | add a repository |
|
||||||
| zcl | `sudo zypper clean` | clean cache |
|
|
||||||
| zlr | `zypper lr` | list repositories |
|
| zlr | `zypper lr` | list repositories |
|
||||||
| zmr | `sudo zypper mr` | modify repositories |
|
| zmr | `sudo zypper mr` | modify repositories |
|
||||||
| znr | `sudo zypper nr` | rename repositories (for the alias only) |
|
| znr | `sudo zypper nr` | rename repositories (for the alias only) |
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ alias zwp='zypper --no-refresh wp'
|
|||||||
|
|
||||||
#Repositories commands
|
#Repositories commands
|
||||||
alias zar='sudo zypper ar'
|
alias zar='sudo zypper ar'
|
||||||
alias zcl='sudo zypper clean'
|
|
||||||
alias zlr='zypper lr'
|
alias zlr='zypper lr'
|
||||||
alias zmr='sudo zypper mr'
|
alias zmr='sudo zypper mr'
|
||||||
alias znr='sudo zypper nr'
|
alias znr='sudo zypper nr'
|
||||||
|
|||||||
Reference in New Issue
Block a user