跳至主要内容

[Mac] 自動依 Wifi 名稱更改網路位置

Installation & Update

curl -L https://github.com/eprev/locationchanger/raw/master/locationchanger.sh | bash

Cconfiguration

Remove locationchanger

# Unload and remove launch agent
launchctl unload -w ~/Library/LaunchAgents/LocationChanger.plist
rm ~/Library/LaunchAgents/LocationChanger.plist

# Remove locationchanger binary
sudo rm /usr/local/bin/locationchanger

# Remove config
rm ~/.locations/locations.conf

# Remove logs
rm ~/Library/Logs/LocationChanger.log