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 bashpull/335/head
commit
1ca48a6515
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue