diff --git a/.bash_extra b/.bash_extra index bc7a94a..08c5940 100644 --- a/.bash_extra +++ b/.bash_extra @@ -161,7 +161,16 @@ function ll { ls -lah "$@" fi } - +function sctl { + case "$1" in + "") + echo "[ERROR] Argument/Unit missing." + ;; + *) + sudo /usr/bin/systemctl "$1" "$2" + sudo /usr/bin/systemctl status "$2" + esac +} ### Aliase # tmux