diff --git a/scripts/bashrc b/scripts/bashrc index dfb46dd..67e6b54 100644 --- a/scripts/bashrc +++ b/scripts/bashrc @@ -75,6 +75,17 @@ color() { echo $tmp } +# Set proxy +setproxy() { + addr=${1:-127.0.0.1} + port=${2:-7890} + full="$addr:$port" + export https_proxy="http://$full" + export http_proxy="http://$full" + export all_proxy="socks5://$full" + color "&aUsing proxy! $full&r" +} + # Cut videos - cut [start time (default 00:00:00)] cut() { if [ "$#" -lt 2 ]; then