From d0fc94a19258030fad433eb4091479bba5ef043e Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Mon, 17 Jul 2023 16:17:20 -0700 Subject: [PATCH] zsh: suppress aliases and shell functions when calling systemctl This prevents any errors in case the user had aliased some arguments following systemctl. --- shell-completion/zsh/_systemctl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in index d533734d8d8..666649e858b 100644 --- a/shell-completion/zsh/_systemctl.in +++ b/shell-completion/zsh/_systemctl.in @@ -153,7 +153,7 @@ # @todo _systemd-run has a helper with the same name, so we must redefine __systemctl() { - systemctl $_sys_service_mgr --full --legend=no --no-pager --plain "$@" 2>/dev/null + command systemctl $_sys_service_mgr --full --legend=no --no-pager --plain "$@" 2>/dev/null } -- 2.47.3