fix: update hostname display in MOTD script and clean up alias definition

This commit is contained in:
maxi 2025-06-15 10:59:26 +02:00
parent c5f95410e5
commit 2120a6953c
2 changed files with 9 additions and 8 deletions

View file

@ -2,16 +2,20 @@
bold=$(tput bold)
normal=$(tput sgr0)
# just checking up on how to figure out hostname
if command -v hostname; then
else
alias hostname="hostnamectl"
fi
# making sure you are on the right device. :^)
printf '%0.s*' {1..80}
echo
echo "you are" ${bold}$(whoami)${normal} "on" ${bold}$(hostname)${normal} "which is running" ${bold}$(uname -s -r)${normal}"."
echo "you are" ${bold}$(whoami)${normal} "on" ${bold}$(hostname -s)${normal} "which is running" ${bold}$(uname -s -r)${normal}"."
# keep your sanity, maximilian.
# displaying a random image from my motd folder.
viu -b -t -w 80 $DOTFILES_PATH/PICTURES/MOTD.PNG
# (non)motivational lines from music, tv shows, movies and books. whatever i found fitting to remind me.
echo ${bold}$(shuf -n1 $DOTFILES_PATH/MOTD.LINES.MD)${normal}
printf '%0.s*' {1..80}
echo
echo