A Fish Script for Alerting when Network Connectivity Changes

The ping command has a switch -a for an audible ping that rings the terminal bell with each response received, but that’s annoying. What we want more often is to be alerted when the situation changes.