1234567891011 |
- #
- # 2024-05-20 * changed time and date position /A
- # 2025-02-14 + show external IP, check for DHCP, DNS resolution and routing /A
- # 2025-03-11 + Reverse resolve DNS record /A
- #
- # add to ~/.zshrc
- # "source /Users/Shared/dox-prj/repos/gogs.2dz.fi/gogs.2dz.fi.InstallAndUse.Daily/console-terminal/zshrc-anton.sh"
- PROMPT="[20%D %*] @%m %~ $ "
- ip4=$(curl -s https://myip.2dz.fi)
- echo "My external IP is: ${ip4} = $(dig -x ${ip4} +short)"
|