28 lines
312 B
Bash
28 lines
312 B
Bash
|
#!/bin/zsh
|
||
|
case $OSTYPE in
|
||
|
darwin*)
|
||
|
alias date="/opt/homebrew/bin/gdate"
|
||
|
;;
|
||
|
esac
|
||
|
d=${0:a:h}/scpt
|
||
|
source $d/env
|
||
|
source $d/refresh.zsh
|
||
|
source $d/token.zsh
|
||
|
source $d/reply.zsh
|
||
|
source $d/notify.zsh
|
||
|
|
||
|
case $1 in
|
||
|
refresh|r)
|
||
|
refresh
|
||
|
;;
|
||
|
token|t)
|
||
|
token
|
||
|
;;
|
||
|
reply)
|
||
|
reply
|
||
|
;;
|
||
|
notify|n)
|
||
|
notify
|
||
|
;;
|
||
|
esac
|