bash: Function sctl
This commit is contained in:
parent
0132215e23
commit
ea48b8c7fa
1 changed files with 10 additions and 1 deletions
11
.bash_extra
11
.bash_extra
|
@ -161,7 +161,16 @@ function ll {
|
||||||
ls -lah "$@"
|
ls -lah "$@"
|
||||||
fi
|
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
|
### Aliase
|
||||||
# tmux
|
# tmux
|
||||||
|
|
Loading…
Reference in a new issue