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
|
|
@ -44,6 +44,3 @@ alias yay="paru"
|
||||||
|
|
||||||
# midnight commander wants to break out of zsh otherwise :^(
|
# midnight commander wants to break out of zsh otherwise :^(
|
||||||
alias mc="mc -u"
|
alias mc="mc -u"
|
||||||
|
|
||||||
# measuring and estimating files
|
|
||||||
alias countfiletype="find . -type f | awk -F. '{print $NF}' | sort | uniq -c | sort -rn | column -t"
|
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,17 @@
|
||||||
bold=$(tput bold)
|
bold=$(tput bold)
|
||||||
normal=$(tput sgr0)
|
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. :^)
|
# making sure you are on the right device. :^)
|
||||||
printf '%0.s*' {1..80}
|
printf '%0.s*' {1..80}
|
||||||
echo
|
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.
|
# keep your sanity, maximilian.
|
||||||
# displaying a random image from my motd folder.
|
|
||||||
viu -b -t -w 80 $DOTFILES_PATH/PICTURES/MOTD.PNG
|
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.
|
# (non)motivational lines from music, tv shows, movies and books. whatever i found fitting to remind me.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue