Auf meinem Server und sonstigen Linuxen habe ich ein "Bling-Bling" drin und wollte das auch im yaVDR haben.
Wer das auch einbauen mag, muss nur folgendes in die ~/.bashrc nach dem # If not running interactively,... Block einfügen:
Code
# Define some colors first:
red='\e[0;31m' ; RED='\e[1;31m'
blue='\e[0;34m' ; BLUE='\e[1;34m'
cyan='\e[0;36m' ; CYAN='\e[1;36m'
NC='\e[0m' # No Color
# Release-File (PRETTY_NAME & VERSION)
REL_FILE='/etc/os-release'
# Looks best on a terminal with black background...
echo -en "${CYAN}This is BASH ${RED}${BASH_VERSION}"
[[ -n "$DISPLAY" ]] && echo -en "${CYAN}- DISPLAY on ${RED}$DISPLAY${NC}"
echo -e "${BLUE}"
echo -e '\t __ _______ _____ '
echo -e '\t \ \ / / __ \| __ \ '
echo -e '\t _ _ __ \ \ / /| | | | |__) |'
echo -e '\t | | | |/ _` \ \/ / | | | | _ / '
echo -e '\t | |_| | (_| |\ / | |__| | | \ \ '
echo -e '\t \__, |\__,_| \/ |_____/|_| \_\'
echo -e '\t __/ | '
echo -en "\t |___/ $NC"
if [[ -e "$REL_FILE" ]] ; then
while IFS= read -r; do
if [[ ${REPLY} =~ VERSION ]] ; then
declare "${REPLY}" # locale Variable
echo -en "${RED}${VERSION//\"/}${NC}"
break
fi
done < "$REL_FILE"
fi
echo -e '\n'
Display More