-
-
Save xdbr/6b6b723d624a11a0c39b to your computer and use it in GitHub Desktop.
osx: join network from commandline // network should not include spaces // needs "fzf" and "pass" installed
This file contains 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
network=$(airport -s | fzf | cut -b 1-33 | sed -e 's/^ *//' -e 's/ *$//') && networksetup -setairportnetwork en0 $network $(pass wifi/$network) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment