Optimize _lp_proxy
This commit is contained in:
parent
554c155afb
commit
5ead985c8a
@ -440,11 +440,7 @@ esac
|
|||||||
# put an arrow if an http proxy is set
|
# put an arrow if an http proxy is set
|
||||||
_lp_proxy()
|
_lp_proxy()
|
||||||
{
|
{
|
||||||
[[ "$LP_ENABLE_PROXY" != 1 ]] && return
|
[[ "$LP_ENABLE_PROXY,$http_proxy" = 1,?* ]] && echo -ne "$LP_COLOR_PROXY$LP_MARK_PROXY$NO_COL"
|
||||||
|
|
||||||
if [[ ! -z "$http_proxy" ]] ; then
|
|
||||||
echo -ne "$LP_COLOR_PROXY$LP_MARK_PROXY$NO_COL"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# BASH/ZSH function that shortens
|
# BASH/ZSH function that shortens
|
||||||
|
Loading…
x
Reference in New Issue
Block a user