Created
February 3, 2021 15:36
-
-
Save oxalorg/ee87860866331bf8c9948c7c018d27e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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