Skip to content

Instantly share code, notes, and snippets.

@zph
Created December 5, 2019 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zph/2b1039805f98dd2ca8a56830bec5c4a3 to your computer and use it in GitHub Desktop.
Save zph/2b1039805f98dd2ca8a56830bec5c4a3 to your computer and use it in GitHub Desktop.
#!/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