Merge pull request #332 from EHJ-52n/fix/ip-command-masked-by-theme-function

Change name of ip function to remove masking of ip command in bash
pull/335/head
Travis Swicegood 2014-08-25 10:21:56 -07:00
commit 1ca48a6515
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ IP_SEPARATOR=', '
# FUNCS =======================================================================
function ip {
function get_ip_info {
myip=$(curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+')
echo -e "$(ips | sed -e :a -e '$!N;s/\n/${IP_SEPARATOR}/;ta' | sed -e 's/127\.0\.0\.1\${IP_SEPARATOR}//g'), ${myip}"
}
@ -91,7 +91,7 @@ function ip {
# Displays ip prompt
function ip_prompt_info() {
if [[ $IP_ENABLED == 1 ]]; then
echo -e " ${DEFAULT_COLOR}(${IP_COLOR}$(ip)${DEFAULT_COLOR})"
echo -e " ${DEFAULT_COLOR}(${IP_COLOR}$(get_ip_info)${DEFAULT_COLOR})"
fi
}