From 709db4f584839e4e943fd3dc4cdc43a927a458cf Mon Sep 17 00:00:00 2001 From: kou1okada Date: Fri, 6 Apr 2018 17:06:54 +0900 Subject: [PATCH] Added `get-proxy` subcommand. --- apt-cyg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apt-cyg b/apt-cyg index caac204..4583bf0 100755 --- a/apt-cyg +++ b/apt-cyg @@ -98,6 +98,7 @@ function usage() echo " \"apt-cyg download\" download the binary package into the current directory." echo " \"apt-cyg mirror\" download the binary package into the current cache/mirrordir as mirror." echo " \"apt-cyg listfiles\" List files 'owned' by package(s)." + echo " \"apt-cyg get-proxy\" Get proxies for eval." echo "Options:" echo " --ag : use the silver searcher (currently work only at packageof subcommand)" echo " --charch : change archetecture" @@ -605,6 +606,11 @@ function proxy_setup () esac } +function apt-cyg-get-proxy () +{ + declare -p ftp_proxy http_proxy https_proxy +} + # Usage: get_pkgname PKGFILE function get_pkgname () {