SWitch Network Services from the command line on Mac.
curl -o ~/.local/bin/swns --create-dirs https://raw.githubusercontent.com/matoruru/swns/main/swns
chmod +x ~/.local/bin/swnsThis section is necessary only when you couldn't find the executable swns by type swns.
-
bash (in
~/.bash_profile):export PATH="$PATH:~/.local/bin"
-
fish (in
.config/fish/config.fish):set -x PATH ~/.local/bin $PATH
swns