From 228de9b517e97331f6a87e5a815ba3fdda118675 Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Mon, 14 Jan 2013 18:13:46 +0200 Subject: [PATCH] bashrc & zshrc: add some systemd aliases --- bashrc | 5 +++++ zshrc | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/bashrc b/bashrc index a53e483b..4ddb10e0 100644 --- a/bashrc +++ b/bashrc @@ -409,6 +409,11 @@ alias less="less -R " # "su -" with sudo alias ssu="sudo -i " +# systemd runlevels/targets +alias currenttargets="systemctl list-units --type=target" +alias telsystemd="systemctl isolate " +alias defaulttarget="systemctl enable " + # Allow custom aliases to be put in .aliases or .bash_aliases . # .aliases diff --git a/zshrc b/zshrc index 91333379..b1d47bf6 100644 --- a/zshrc +++ b/zshrc @@ -358,6 +358,11 @@ alias ex-tarbz2="tar xfvj " alias info="echo 'I don't know anyone who likes and uses info pages, so I aliased this to pinfo. If you don't have it installed, you should install it! To override this alias run: \info ' && pinfo " +# systemd runlevels/targets +alias currenttargets="systemctl list-units --type=target" +alias telsystemd="systemctl isolate " +alias defaulttarget="systemctl enable " + # For getting timestamps in history alias history="history -i "