Skip to content

Instantly share code, notes, and snippets.

@Ian729
Last active December 6, 2024 05:48
Show Gist options
  • Save Ian729/131569b842ecb2f53d110fe4dc0e8894 to your computer and use it in GitHub Desktop.
Save Ian729/131569b842ecb2f53d110fe4dc0e8894 to your computer and use it in GitHub Desktop.
[ "$1" = "" ] && echo "wifi version | wifi join [ssid] [password] | wifi get";
[ "$1" = "version" ] && echo "wifi v1.0 by Ian";
[ "$1" = "join" ] && networksetup -setairportnetwork en0 $2 $3;
[ "$1" = "get" ] && networksetup -getairportnetwork en0;
@Ian729
Copy link
Author

Ian729 commented Dec 6, 2024

install:
	chmod 777 ./wifi
	sudo cp ./wifi /usr/local/bin
uninstall:
	sudo rm /usr/local/bin/wifi

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