zshrc-anton.sh 438 B

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