From d63bc485529cb03d6aa4927427feb807c4783ca5 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 9 Jun 2025 10:04:06 +0300 Subject: [PATCH] {bash,zsh}rc: actually call lsb_release -sd as containers are confusing --- rc/bashrc | 1 + rc/zshrc | 1 + 2 files changed, 2 insertions(+) diff --git a/rc/bashrc b/rc/bashrc index 3676f7c4..67f11409 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -145,6 +145,7 @@ if hash lsb_release 2> /dev/null; then elif hash hostnamectl 2> /dev/null; then hostnamectl hostname & fi + lsb_release -sd & if hash ifconfig 2> /dev/null; then \LC_ALL=C.utf8 \ifconfig | \grep inet | \grep -Ev "127.0.0.1|inet6" diff --git a/rc/zshrc b/rc/zshrc index ac3792c2..57927662 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -42,6 +42,7 @@ if hash lsb_release 2> /dev/null; then elif hash hostnamectl 2> /dev/null; then hostnamectl hostname & fi + lsb_release -sd if hash ifconfig 2> /dev/null; then LC_ALL=C.utf8 \ifconfig | \grep inet | \grep -Ev "127.0.0.1|inet6"