Put proxy URL out of bashrc
This commit is contained in:
parent
391ebbe608
commit
7706e99a92
1 changed files with 6 additions and 5 deletions
11
.bashrc
11
.bashrc
|
|
@ -11,10 +11,11 @@ fi
|
||||||
|
|
||||||
function proxy()
|
function proxy()
|
||||||
{
|
{
|
||||||
export http_proxy="http://localhost:8888"
|
proxy_url="$(~/proxy.sh)"
|
||||||
export https_proxy="http://localhost:8888"
|
export http_proxy="$proxy_url"
|
||||||
export ftp_proxy="ftp://localhost:8888"
|
export https_proxy="$proxy_url"
|
||||||
echo "localhost:8888"
|
export ftp_proxy="$proxy_url"
|
||||||
|
echo ${proxy_url##*@}
|
||||||
}
|
}
|
||||||
|
|
||||||
function noproxy()
|
function noproxy()
|
||||||
|
|
@ -126,7 +127,7 @@ bind '"\e[B": history-search-forward'
|
||||||
# Processes #
|
# Processes #
|
||||||
#############
|
#############
|
||||||
|
|
||||||
alias psg='ps aux|grep ' # grep a process
|
alias psg='ps aux|grep -v grep | grep -i --color=auto ' # grep a process
|
||||||
|
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue