Added wifi connect shortcut to bashrc

This commit is contained in:
Tony Grosinger 2015-05-16 08:53:36 -07:00
parent 00007ebd56
commit ef4c7ed402

13
.bashrc
View File

@ -71,6 +71,19 @@ function fb() {
fi
}
# wificonnect
# usage: wificonnect <ssid> <password>
# Connects the computer to the provided network
# Assumes the network interface is wlan0
function wificonnect() {
if [ $# -ne 2]; then
echo "wificonnect"
echo "usage: wificonnect <ssid> <password>"
else
nmcli d wifi connect $1 password $2 iface wlan0
fi
}
# Prompt Related Helpers
# Add color shortcuts