diff options
Diffstat (limited to '.oh-my-zsh/plugins/firewalld/firewalld.plugin.zsh')
-rw-r--r-- | .oh-my-zsh/plugins/firewalld/firewalld.plugin.zsh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/.oh-my-zsh/plugins/firewalld/firewalld.plugin.zsh b/.oh-my-zsh/plugins/firewalld/firewalld.plugin.zsh deleted file mode 100644 index 5b10906..0000000 --- a/.oh-my-zsh/plugins/firewalld/firewalld.plugin.zsh +++ /dev/null @@ -1,17 +0,0 @@ -alias fw="sudo firewall-cmd" -alias fwp="sudo firewall-cmd --permanent" -alias fwr="sudo firewall-cmd --reload" -alias fwrp="sudo firewall-cmd --runtime-to-permanent" - -function fwl () { - # converts output to zsh array () - # @f flag split on new line - zones=("${(@f)$(sudo firewall-cmd --get-active-zones | grep -v 'interfaces\|sources')}") - - for i in $zones; do - sudo firewall-cmd --zone $i --list-all - done - - echo 'Direct Rules:' - sudo firewall-cmd --direct --get-all-rules -} |