aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2016-12-12 09:14:42 +0100
committerKarel Kočí <karel.koci@nic.cz>2016-12-12 09:14:42 +0100
commitbc5fed28c15ffd647a9450f272c63aba2a7b16fb (patch)
tree7d32f6511375e061851bccb896cafce2fedb0e40
parent30da82b601b079340e2580cd0685e27c346d2e87 (diff)
downloadmyconfigs-bc5fed28c15ffd647a9450f272c63aba2a7b16fb.tar.gz
myconfigs-bc5fed28c15ffd647a9450f272c63aba2a7b16fb.tar.bz2
myconfigs-bc5fed28c15ffd647a9450f272c63aba2a7b16fb.zip
If running systemd add systemd aliases
-rw-r--r--shellrc8
1 files changed, 8 insertions, 0 deletions
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