Anton Shestakov <engored@ya.ru>, Fri, 01 Jun 2012 20:27:08 +0900
Added git branch name; bash-fu.
.bash_dconf2env
Permissions: -rw-r--r--
[[ `type -P dconf
` ]] || return if [[ `dconf
read /system/proxy/http/enabled
` = "true" ]]; then host=`dconf
read /system/proxy/http/host
` port=`dconf
read /system/proxy/http/port
` export http_proxy="http://${host}:${port}/" export HTTP_PROXY="http://${host}:${port}/" no_proxy=`dconf
read /system/proxy/ignore-hosts
| grep -Po
"(?<=')[^']+(?=')" | tr -d
' \n'` export no_proxy="${no_proxy}" export NO_PROXY="${no_proxy}"