Compare commits
2 commits
30ae575353
...
55acd85923
Author | SHA1 | Date | |
---|---|---|---|
55acd85923 | |||
ee62b3c91a |
|
@ -28,7 +28,7 @@ read the proxy actually to be used. Otherwise `/etc/proxyenv.conf` will be used.
|
||||||
The configuration file (default `/etc/proxyenv.conf`) will be sourced when proxyenv run,
|
The configuration file (default `/etc/proxyenv.conf`) will be sourced when proxyenv run,
|
||||||
so take care no let this file's permission to open, 755 is suggested.
|
so take care no let this file's permission to open, 755 is suggested.
|
||||||
|
|
||||||
For entry detail of configuration file, see [proxyenv.conf](/proxyenv.conf) in this repository.
|
For entry detail of configuration file, see `proxyenv.conf` in this repository.
|
||||||
|
|
||||||
## Misc
|
## Misc
|
||||||
|
|
||||||
|
|
5
proxyenv
5
proxyenv
|
@ -1,5 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Just quit queitly when no program specfied
|
||||||
|
if (( "$#" -le 0 )) ; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -z "$PROXYENV_CONFPATH" ]] ; then
|
if [[ -z "$PROXYENV_CONFPATH" ]] ; then
|
||||||
if [[ -e "/etc/proxyenv.conf" ]] ; then
|
if [[ -e "/etc/proxyenv.conf" ]] ; then
|
||||||
source "/etc/proxyenv.conf"
|
source "/etc/proxyenv.conf"
|
||||||
|
|
Loading…
Reference in a new issue