Skip to content

Instantly share code, notes, and snippets.

@alexhwoods
Created September 6, 2019 18:03
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 alexhwoods/255e794e657ecb509fe317e84d5177fc to your computer and use it in GitHub Desktop.
Save alexhwoods/255e794e657ecb509fe317e84d5177fc to your computer and use it in GitHub Desktop.
Restart wifi command - Mac
restart() {
if [[ $@ == "wifi" ]]; then
command networksetup -setairportpower en0 off
command networksetup -setairportpower en0 on
else
command echo not yet defined
fi
}
@alexhwoods
Copy link
Author

restart wifi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment