add ~/.bash*

This commit is contained in:
Don Harper 2023-10-06 23:49:27 -05:00
parent f38125626a
commit f6485eb7e4
12 changed files with 1115 additions and 0 deletions

View file

@ -0,0 +1,30 @@
#!/bin/bash -
#===============================================================================
#
# FILE: .bash_motd_ownscript.sh
#
# USAGE: ./.bash_motd_ownscript.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Don Harper (dmh), duck@duckland.org
# ORGANIZATION: duckland.org
# CREATED: 01/28/2022 21:23
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
if [ "$(pgrep -c tailscaled)" = "1" ]
then
printf "\\n"
printf " \\033[1;37mTailScale:\\033[0m\\n"
tailscale status | while read -r line
do
printf " %s\n" "${line}"
done
fi