mirror of
https://github.com/xxoommd/magic.git
synced 2025-04-19 02:12:45 +00:00
update
This commit is contained in:
parent
8069ef36c7
commit
d470782924
@ -2,10 +2,18 @@ alias l='ls -lhF'
|
||||
alias ll=l
|
||||
alias la='ls -AlhF'
|
||||
|
||||
export PS1='%(?:%{%}%1{➜%} :%{%}%1{➜%} ) %{%}%~%{%} $(git_prompt_info)'
|
||||
export PATH=$PATH:/Users/gaofei/Projects/github.com/magic/scripts
|
||||
export PATH="/usr/local/opt/node@20/bin:$PATH"
|
||||
export http_proxyserver="http://127.0.0.1:10809"
|
||||
|
||||
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
|
||||
export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"
|
||||
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
|
||||
function set-proxy() {
|
||||
if [[ $1 == "on" ]]; then
|
||||
export HTTP_PROXY=$http_proxyserver
|
||||
export HTTPS_PROXY=$http_proxyserver
|
||||
elif [[ $1 == "off" ]]; then
|
||||
unset HTTP_PROXY HTTPS_PROXY
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "HTTP_PROXY=$HTTP_PROXY"
|
||||
echo "HTTPS_PROXY=$HTTPS_PROXY"
|
||||
echo
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
export HTTP_PROXY="http://localhost:28080"
|
||||
export HTTPS_PROXY="http://localhost:28080"
|
@ -1,22 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function show() {
|
||||
echo
|
||||
echo "HTTP_PROXY=$HTTP_PROXY"
|
||||
echo "HTTPS_PROXY=$HTTPS_PROXY"
|
||||
echo
|
||||
}
|
||||
|
||||
function main() {
|
||||
if [[ $1 == "on" ]]; then
|
||||
DIR="$(dirname "${BASH_SOURCE[0]}")"
|
||||
source $DIR/_set_proxy
|
||||
elif [[ $1 == "off" ]]; then
|
||||
unset HTTP_PROXY
|
||||
unset HTTPS_PROXY
|
||||
fi
|
||||
|
||||
show
|
||||
}
|
||||
|
||||
main $@
|
@ -1,9 +1,12 @@
|
||||
# Verion 0.2
|
||||
|
||||
## QUICK START
|
||||
|
||||
1. Set variable: `DEPLOY_DOMAIN`
|
||||
1. Set variable: `DEPLOY_DOMAIN` and `TAG`
|
||||
|
||||
```shell
|
||||
export DEPLOY_DOMAIN=xxx.xxx
|
||||
export TAG=v0.2
|
||||
```
|
||||
|
||||
2. Start
|
||||
|
@ -74,8 +74,8 @@ HY_CONFIG_FILE="${WORKING_DIR}/hy-config.yaml"
|
||||
CADDY_CONFIG_FILE="${WORKING_DIR}/Caddyfile"
|
||||
|
||||
echo -e "[INFO] Download ${GREEN}hysteria${NC} and ${GREEN}caddy${NC} ..."
|
||||
curl -L -o /usr/local/bin/hysteria $hysteria_download_url &&
|
||||
curl -L -o /usr/local/bin/caddy $caddy_download_url &&
|
||||
curl -L -o /usr/local/bin/hysteria $hysteria_download_url && \
|
||||
curl -L -o /usr/local/bin/caddy $caddy_download_url && \
|
||||
chmod +x /usr/local/bin/hysteria /usr/local/bin/caddy
|
||||
echo -e "[INFO] Download Done\n"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user