From 495697cd000dfac3959ef182af6a490a441da8ab Mon Sep 17 00:00:00 2001 From: EHJ-52n Date: Wed, 20 Aug 2014 12:23:37 +0200 Subject: [PATCH] Change name of ip function to remove masking of ip command in bash --- themes/hawaii50/hawaii50.theme.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/hawaii50/hawaii50.theme.bash b/themes/hawaii50/hawaii50.theme.bash index b6937508..21b3ab4f 100644 --- a/themes/hawaii50/hawaii50.theme.bash +++ b/themes/hawaii50/hawaii50.theme.bash @@ -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 }