Created
December 5, 2019 07:36
-
-
Save zph/2b1039805f98dd2ca8a56830bec5c4a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -CEeuo pipefail | |
IFS=$'\n\t' | |
shopt -s extdebug | |
main() { | |
networksetup -getairportnetwork en0 | sed 's/Current Wi-Fi Network: //g' | |
} | |
main "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment