Skip to content

Instantly share code, notes, and snippets.

@oxalorg
Created February 3, 2021 15:36
Show Gist options
  • Save oxalorg/ee87860866331bf8c9948c7c018d27e7 to your computer and use it in GitHub Desktop.
Save oxalorg/ee87860866331bf8c9948c7c018d27e7 to your computer and use it in GitHub Desktop.
#!/bin/sh
zcfg ()
{
local URL;
if [[ $# -lt 1 ]]; then
defaults read ZoomChat conf.webserver;
else
defaults write ZoomChat com.zoom.client.zclist "";
case $1 in
www)
URL=https://www.zoom.us
;;
devep)
URL=https://devep.zoomdev.us
;;
*)
URL=$1
;;
esac;
defaults write ZoomChat conf.webserver $URL;
[ "$2" != "" ] && killall zoom.us;
$FUNCNAME;
fi
}
z ()
{
[ "$1" != "" ] && zcfg $1;
open -n -a "zoom.us";
[ "$1" != "" ] && sleep 5 && zcfg www
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment