{bash,zsh}rc: load /etc/os-release if it exists

This commit is contained in:
Aminda Suomalainen 2024-08-14 07:33:52 +03:00
parent 90c83db612
commit aa3e5422d9
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 10 additions and 0 deletions

View File

@ -25,6 +25,11 @@ fi
# Aliases RJ706I
# Functions ZGC5QQ
# lsb_base ?
if [ -f /etc/os-release ]; then
. /etc/os-release
fi
##### Defaults etc... M0TZLS #####
# ~/.bashrc: executed by bash(1) for non-login shells.

View File

@ -25,6 +25,11 @@ fi
# Aliases RJ706I
# Functions ZGC5QQ
# lsb_base ?
if [ -f /etc/os-release ]; then
. /etc/os-release
fi
# Kind of my welcome screen when I open a terminal?
# Existence of lsb_release implies both being on Linux and me having touched
# the system, so I can do away with a lot of checks for Darwin