Created
September 6, 2019 18:03
-
-
Save alexhwoods/255e794e657ecb509fe317e84d5177fc to your computer and use it in GitHub Desktop.
Restart wifi command - Mac
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
restart() { | |
if [[ $@ == "wifi" ]]; then | |
command networksetup -setairportpower en0 off | |
command networksetup -setairportpower en0 on | |
else | |
command echo not yet defined | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
restart wifi