mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 22:30:07 +00:00
avoid conflict with 1-9 alises
This commit is contained in:
parent
557234e352
commit
23f1c44ae2
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ function _do_sudo() {
|
||||||
command|exec|-) shift; break ;;
|
command|exec|-) shift; break ;;
|
||||||
nocorrect) shift ;;
|
nocorrect) shift ;;
|
||||||
noglob) __do_sudo_glob=0; shift ;;
|
noglob) __do_sudo_glob=0; shift ;;
|
||||||
|
[1-9]) args+=( $1 ); shift ;;
|
||||||
*)
|
*)
|
||||||
cmd_alias="$(command -v 2>/dev/null -- "$1")"
|
cmd_alias="$(command -v 2>/dev/null -- "$1")"
|
||||||
if [[ "$?" -eq 0 ]] && [[ "$cmd_alias" == 'alias'* ]] && [[ -z "$__do_sudo_expanded["$1"]" ]]; then
|
if [[ "$?" -eq 0 ]] && [[ "$cmd_alias" == 'alias'* ]] && [[ -z "$__do_sudo_expanded["$1"]" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue