fix: update hostname display in MOTD script and clean up alias definition
This commit is contained in:
parent
c5f95410e5
commit
2120a6953c
2 changed files with 9 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue