mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
Merge branch 'public_ip_segment' of github.com:rjorgenson/powerlevel9k into public_ip_segment
This commit is contained in:
commit
f9bb7a2e94
1 changed files with 1 additions and 0 deletions
|
@ -460,6 +460,7 @@ prompt_public_ip() {
|
|||
if [[ -z "$fresh_ip" ]] && type -p wget >/dev/null; then
|
||||
fresh_ip="$(wget -T 10 -qO- "$POWERLEVEL9K_PUBLIC_IP_HOST" 2> /dev/null)"
|
||||
fi
|
||||
|
||||
# write IP to tmp file or touch tmp file if an IP was not retrieved
|
||||
[[ -n $fresh_ip ]] && echo $fresh_ip > $POWERLEVEL9K_PUBLIC_IP_FILE || touch $POWERLEVEL9K_PUBLIC_IP_FILE
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue