From 893b506d0f8a61afa70d39870ec52bdba6af89c0 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Mon, 25 May 2015 12:15:12 +0000 Subject: Added showbanned function to bashrc --- bash/.bashrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'bash/.bashrc') diff --git a/bash/.bashrc b/bash/.bashrc index 0f0b32d..37bb474 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -39,7 +39,6 @@ exists() { hash $@ 2> /dev/null } - if exists mpv; then alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream' elif exists vlc; then @@ -76,6 +75,16 @@ if exists ezjail-admin; then } fi +if exists pfctl; then + showbanned () + { + for table in $(sudo pfctl -s Tables 2> /dev/null); do + echo "$table"; + sudo pfctl -t $table -T show 2> /dev/null; + done + } +fi + if exists liquidprompt; then source liquidprompt fi -- cgit v1.2.3