Add systemctl and journalctl aliases.

This commit is contained in:
Jeremy Gardais 2017-08-04 09:17:58 +02:00
parent db9fa1141b
commit 686e1410a8
1 changed files with 4 additions and 0 deletions

4
zshrc
View File

@ -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 '