Improved wifi-password script for macOS.
Inspired (and stole some code from) the original.
- fzf integration
- clipboard integration
Use my dotfiles
OR
Install with brew
brew install matt-dong-123/tap/wp
OR
Install with your favorite zsh plugin manager
e.g. zgenom:
zgenom load matt-dong-123/wp
to your .zshrc.
OR
Paste
curl -L https://raw.githubusercontent.com/matt-dong-123/wp/refs/head/main/wp -o ~/bin/wp && chmod +x ~/bin/wpinto the terminal.
If you don't have ~/bin in your $PATH, replace it with /usr/local/bin or similar.
Get current wifi password:
wp
Get wifi password of network:
wp <network>
Copy it:
wp -c <network>
Search a network name to get password:
wp -f
Copy that:
wp -fc