I want to setup wifi on my new Pi Zero, and I do not have a powered USB hub. My keyboard/mouse takes up the only USB port, so I do not have another port to add a wifi dongle. I would prefer not to buy anything new. After setting up wifi, I will not need my keyboard/mouse. Is there any way to do this?
goldilocks left a comment that had a link to another question. The answer to that question led me to https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md. The way you configure wifi without a dongle plugged in is to append this to your
Your_wifi_name with your wifi name, and
Your_wifi_password with your wifi password.
Then, turn off your Pi. Plug in your wifi dongle and turn the Pi on again. It should connect to the network.