dotfiles/TERMINAL.MOTD.SH

21 lines
687 B
Bash
Executable file

# making bold text easier to implement for me
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 -s)${normal} "which is running" ${bold}$(uname -s -r)${normal}"."
# keep your sanity, maximilian.
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