when I at company , I have to export 3 enviroment variables, http_proxy,https_proxy,all_proxy,
I wrote a file ~/bin/setproxy like this
#! /bin/sh
export http_proxy=http://......:8888
export https_proxy=http://......:8888
export all_proxy=http://......:8888
but when I execute this file at bash, then use env | grep http_proxy , I got nothing. but "source ~/bin/setproxy" works, but is there any way short this to 1 word command. I wrote another file only 1 line,
source ~/bin/setproxy
but it does not work.