mirror of
https://github.com/xxoommd/magic.git
synced 2025-04-19 10:46:29 +00:00
19 lines
409 B
Bash
19 lines
409 B
Bash
alias l='ls -lhF'
|
|
alias ll=l
|
|
alias la='ls -AlhF'
|
|
|
|
export http_proxyserver="http://127.0.0.1:10809"
|
|
|
|
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
|
|
} |