From a5250eca33c618d563181a979a7a48cfdc6c9daa Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Tue, 25 Jan 2022 14:02:37 +0100 Subject: [PATCH] config/shell/functions: do not double systemctl status --- .config/shell/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/shell/functions b/.config/shell/functions index 416d6d9..de604b6 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -133,8 +133,8 @@ alias sc='sudo systemctl' alias sce='sudo systemctl enable --now' alias scd='sudo systemctl disable --now' scs() { - systemctl --user status "*$1*" "$1" || - sudo systemctl status "*$1*" "$1" + systemctl --user status "*$1*" || + sudo systemctl status "*$1*" } alias scu='systemctl --user' alias scue='systemctl --user enable --now'