How to configure http proxy exceptions on Ubuntu

$ nano /etc/environment

export http_proxy="http://example.com:8100"
export https_proxy="http://example.com:8000"
export no_proxy="127.0.0.1, localhost"

$ source /etc/environment

restart terminal.