dotfiles/TERMINAL.MOTD.SH

17 lines
No EOL
625 B
Bash
Executable file

# making bold text easier to implement for me
bold=$(tput bold)
normal=$(tput sgr0)
# making sure you are on the right device. :^)
printf '%0.s*' {1..80}
echo
echo "you are" ${bold}$(whoami)${normal} "on" ${bold}$(hostnamectl hostname)${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