From 23f1c44ae2ba32b48b4386459058138836c8f98e Mon Sep 17 00:00:00 2001 From: Frederick Zhang Date: Mon, 21 Oct 2019 15:50:44 +1100 Subject: [PATCH] avoid conflict with 1-9 alises --- plugins/do_sudo/do_sudo.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/do_sudo/do_sudo.plugin.zsh b/plugins/do_sudo/do_sudo.plugin.zsh index 85ca2d853..8e28c1953 100644 --- a/plugins/do_sudo/do_sudo.plugin.zsh +++ b/plugins/do_sudo/do_sudo.plugin.zsh @@ -15,6 +15,7 @@ function _do_sudo() { command|exec|-) shift; break ;; nocorrect) shift ;; noglob) __do_sudo_glob=0; shift ;; + [1-9]) args+=( $1 ); shift ;; *) cmd_alias="$(command -v 2>/dev/null -- "$1")" if [[ "$?" -eq 0 ]] && [[ "$cmd_alias" == 'alias'* ]] && [[ -z "$__do_sudo_expanded["$1"]" ]]; then