diff options
| author | 2015-05-25 12:15:12 +0000 | |
|---|---|---|
| committer | 2015-05-25 12:15:12 +0000 | |
| commit | 893b506d0f8a61afa70d39870ec52bdba6af89c0 (patch) | |
| tree | 70179cbf0c26f7853767a2b7b1f0fccbb18f0bb9 | |
| parent | 1b80f1efda4821c350bc380674cfa7b26da388ce (diff) | |
| download | dotfiles-893b506d0f8a61afa70d39870ec52bdba6af89c0.tar.gz dotfiles-893b506d0f8a61afa70d39870ec52bdba6af89c0.tar.bz2 dotfiles-893b506d0f8a61afa70d39870ec52bdba6af89c0.zip | |
Added showbanned function to bashrc
| -rw-r--r-- | bash/.bashrc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 0f0b32d..37bb474 100644 --- a/bash/.bashrc +++ b/bash/.bashrc | |||
| @@ -39,7 +39,6 @@ exists() { | |||
| 39 | hash $@ 2> /dev/null | 39 | hash $@ 2> /dev/null |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | |||
| 43 | if exists mpv; then | 42 | if exists mpv; then |
| 44 | alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream' | 43 | alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream' |
| 45 | elif exists vlc; then | 44 | elif exists vlc; then |
| @@ -76,6 +75,16 @@ if exists ezjail-admin; then | |||
| 76 | } | 75 | } |
| 77 | fi | 76 | fi |
| 78 | 77 | ||
| 78 | if exists pfctl; then | ||
| 79 | showbanned () | ||
| 80 | { | ||
| 81 | for table in $(sudo pfctl -s Tables 2> /dev/null); do | ||
| 82 | echo "$table"; | ||
| 83 | sudo pfctl -t $table -T show 2> /dev/null; | ||
| 84 | done | ||
| 85 | } | ||
| 86 | fi | ||
| 87 | |||
| 79 | if exists liquidprompt; then | 88 | if exists liquidprompt; then |
| 80 | source liquidprompt | 89 | source liquidprompt |
| 81 | fi | 90 | fi |
