mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-06-12 18:17:21 +02:00
{bash,zsh}rc: actually call lsb_release -sd as containers are confusing
This commit is contained in:
parent
95e81c4ec8
commit
d63bc48552
@ -145,6 +145,7 @@ if hash lsb_release 2> /dev/null; then
|
|||||||
elif hash hostnamectl 2> /dev/null; then
|
elif hash hostnamectl 2> /dev/null; then
|
||||||
hostnamectl hostname &
|
hostnamectl hostname &
|
||||||
fi
|
fi
|
||||||
|
lsb_release -sd &
|
||||||
|
|
||||||
if hash ifconfig 2> /dev/null; then
|
if hash ifconfig 2> /dev/null; then
|
||||||
\LC_ALL=C.utf8 \ifconfig | \grep inet | \grep -Ev "127.0.0.1|inet6"
|
\LC_ALL=C.utf8 \ifconfig | \grep inet | \grep -Ev "127.0.0.1|inet6"
|
||||||
|
1
rc/zshrc
1
rc/zshrc
@ -42,6 +42,7 @@ if hash lsb_release 2> /dev/null; then
|
|||||||
elif hash hostnamectl 2> /dev/null; then
|
elif hash hostnamectl 2> /dev/null; then
|
||||||
hostnamectl hostname &
|
hostnamectl hostname &
|
||||||
fi
|
fi
|
||||||
|
lsb_release -sd
|
||||||
|
|
||||||
if hash ifconfig 2> /dev/null; then
|
if hash ifconfig 2> /dev/null; then
|
||||||
LC_ALL=C.utf8 \ifconfig | \grep inet | \grep -Ev "127.0.0.1|inet6"
|
LC_ALL=C.utf8 \ifconfig | \grep inet | \grep -Ev "127.0.0.1|inet6"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user