diff --git a/rc/bashrc b/rc/bashrc index 5d81c50f..856b92c8 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -145,6 +145,11 @@ if hash lsb_release 2> /dev/null; then elif hash hostnamectl 2> /dev/null; then hostnamectl hostname & fi + + if hash ifconfig 2> /dev/null; then + \LC_ALL=C.utf8 \ifconfig | \grep inet | \grep -Ev "127.0.0.1|inet6" + fi + printf "\n" printf "$(uptime --pretty)\t$(uptime)\n" printf "\nPresent:\n" diff --git a/rc/zshrc b/rc/zshrc index 7bc33507..c44f640b 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -42,6 +42,11 @@ if hash lsb_release 2> /dev/null; then elif hash hostnamectl 2> /dev/null; then hostnamectl hostname & fi + + if hash ifconfig 2> /dev/null; then + LC_ALL=C.utf8 \ifconfig | \grep inet | \grep -Ev "127.0.0.1|inet6" + fi + printf "\n" printf "$(uptime --pretty)\t$(uptime)\n" printf "\nPresent:\n"