Skip to content

Commit

Permalink
Change name of ip function to remove masking of ip command in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
EHJ-52n committed Aug 20, 2014
1 parent a6c2e3b commit 495697c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/hawaii50/hawaii50.theme.bash
Expand Up @@ -83,15 +83,15 @@ 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}"
}

# 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
}

Expand Down

0 comments on commit 495697c

Please sign in to comment.