Skip to content

Instantly share code, notes, and snippets.

@xdbr
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xdbr/6b6b723d624a11a0c39b to your computer and use it in GitHub Desktop.
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
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