Add systemctl and journalctl aliases.
This commit is contained in:
parent
db9fa1141b
commit
686e1410a8
4
zshrc
4
zshrc
|
@ -41,15 +41,19 @@ alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\
|
||||||
alias sudo='sudo -E '
|
alias sudo='sudo -E '
|
||||||
alias s='sudo -E '
|
alias s='sudo -E '
|
||||||
if [ ${USER} != "root" ]; then
|
if [ ${USER} != "root" ]; then
|
||||||
|
alias sc='sudo systemctl '
|
||||||
alias sd='sudo docker'
|
alias sd='sudo docker'
|
||||||
alias si='sudo iptables -L -vn '
|
alias si='sudo iptables -L -vn '
|
||||||
|
alias sj='sudo journalctl '
|
||||||
alias sn='sudo nftables list ruleset'
|
alias sn='sudo nftables list ruleset'
|
||||||
alias sp='sudo puppet agent -t '
|
alias sp='sudo puppet agent -t '
|
||||||
alias sv='sudo -E vi '
|
alias sv='sudo -E vi '
|
||||||
alias sz='sudo -E zsh'
|
alias sz='sudo -E zsh'
|
||||||
else
|
else
|
||||||
|
alias sc='systemctl '
|
||||||
alias sd='docker'
|
alias sd='docker'
|
||||||
alias si='iptables -L -vn '
|
alias si='iptables -L -vn '
|
||||||
|
alias sj='journalctl '
|
||||||
alias sn='nftables list ruleset'
|
alias sn='nftables list ruleset'
|
||||||
alias sp='puppet agent -t '
|
alias sp='puppet agent -t '
|
||||||
alias sv='vi '
|
alias sv='vi '
|
||||||
|
|
Loading…
Reference in New Issue