https://github.com/dominictarr/wifi.sh
basher install
bash script to connect to wifi (on linux)
#list currently available wifi networks.
sudo wifi.sh scan
#connect to best network
sudo wifi.sh connect
#add a network to file.
sudo wifi.sh add SSID passphrase
# show your mac address
sudo wifi.sh mac