From bc5fed28c15ffd647a9450f272c63aba2a7b16fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 12 Dec 2016 09:14:42 +0100 Subject: If running systemd add systemd aliases --- shellrc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'shellrc') diff --git a/shellrc b/shellrc index c112183..f1bc6fe 100644 --- a/shellrc +++ b/shellrc @@ -32,6 +32,14 @@ alias gst='git status' alias v='vim' alias i='i3-msg' +# Systemd aliases if we are running systemd +if pidof systemd >/dev/null 2>/dev/null; then + alias sctl='sudo systemctl' + alias usctl='systemctl --user' + alias jrn='journalctl' + alias ujrn='jrn --user' +fi + genpasswd() { local l=$1 if [ "$l" = "" ]; then l=16; fi -- cgit v1.2.3