From 686e1410a892768b3c571983132a0dedbbc3bffa Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 4 Aug 2017 09:17:58 +0200 Subject: [PATCH] Add systemctl and journalctl aliases. --- zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zshrc b/zshrc index 4c98d03..ebd6495 100644 --- a/zshrc +++ b/zshrc @@ -41,15 +41,19 @@ alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\ alias sudo='sudo -E ' alias s='sudo -E ' if [ ${USER} != "root" ]; then + alias sc='sudo systemctl ' alias sd='sudo docker' alias si='sudo iptables -L -vn ' + alias sj='sudo journalctl ' alias sn='sudo nftables list ruleset' alias sp='sudo puppet agent -t ' alias sv='sudo -E vi ' alias sz='sudo -E zsh' else + alias sc='systemctl ' alias sd='docker' alias si='iptables -L -vn ' + alias sj='journalctl ' alias sn='nftables list ruleset' alias sp='puppet agent -t ' alias sv='vi '