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 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 '
|
||||
|
|
Loading…
Reference in New Issue