mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[welcome] remove "Local IP"
This commit is contained in:
parent
5e1bd6fa82
commit
e036df7c48
1 changed files with 6 additions and 4 deletions
|
@ -20,7 +20,8 @@ def get_system_info():
|
|||
info_lines.append(line)
|
||||
|
||||
username = getuser()
|
||||
hostname, local_ip = _get_hostname()
|
||||
# hostname, local_ip = _get_hostname()
|
||||
hostname = _get_hostname()
|
||||
|
||||
info_lines.append(
|
||||
bright_colored(username, Fore.BLUE) + "@" + bright_colored(hostname, Fore.RED)
|
||||
|
@ -44,7 +45,7 @@ def get_system_info():
|
|||
|
||||
info("Shell", _get_shell())
|
||||
|
||||
info("IP address", local_ip)
|
||||
# info("IP address", local_ip)
|
||||
|
||||
info_lines.append("")
|
||||
|
||||
|
@ -63,8 +64,9 @@ def get_system_info():
|
|||
|
||||
def _get_hostname():
|
||||
hostname = socket.gethostname()
|
||||
local_ip = socket.gethostbyname(hostname)
|
||||
return hostname, local_ip
|
||||
# local_ip = socket.gethostbyname(hostname)
|
||||
# return hostname, local_ip
|
||||
return hostname
|
||||
|
||||
|
||||
def _get_uptime():
|
||||
|
|
Loading…
Reference in a new issue