27:b124c75961d1
Anton Shestakov <engored@ya.ru>, Thu, 27 Feb 2014 20:01:56 +0900
bsdutil's cal.

previous change 4:2fb825b3c3ef

.bash_dconf2env

Permissions: -rw-r--r--

Other formats: Feeds:
#!/bin/bash
[[ `type -P dconf` ]] || return
if [[ `dconf read /system/proxy/http/enabled` = "true" ]]; then
host=`dconf read /system/proxy/http/host`
host="${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}"
fi