From db9fa1141bcfca04c1993ec4608f893d7e10f728 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 4 Aug 2017 09:11:30 +0200 Subject: [PATCH] Alias nftables alias. --- zshrc | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/zshrc b/zshrc index 27b40a2..4c98d03 100644 --- a/zshrc +++ b/zshrc @@ -41,16 +41,18 @@ alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\ alias sudo='sudo -E ' alias s='sudo -E ' if [ ${USER} != "root" ]; then - alias si='sudo iptables -L -vn ' - alias sp='sudo puppet agent -t ' - alias sv='sudo -E vi ' - alias sz='sudo -E zsh' - alias sd='sudo docker' + alias sd='sudo docker' + alias si='sudo iptables -L -vn ' + alias sn='sudo nftables list ruleset' + alias sp='sudo puppet agent -t ' + alias sv='sudo -E vi ' + alias sz='sudo -E zsh' else - alias si='iptables -L -vn ' - alias sp='puppet agent -t ' - alias sv='vi ' - alias sd='docker' + alias sd='docker' + alias si='iptables -L -vn ' + alias sn='nftables list ruleset' + alias sp='puppet agent -t ' + alias sv='vi ' fi # Raccourcis pour cat