Minor fix to myip alias, added new myipv6 alias #1

Merged
mmahdium merged 1 commit from main into main 2024-11-24 09:25:16 -05:00

View file

@ -35,7 +35,8 @@ alias gl="git log --oneline --graph --decorate" # Pretty git log
# --------------------------------------------------
# Network Utilities
# --------------------------------------------------
alias myip="curl ifconfig.me" # Display public IP address
alias myip="curl ident.me" # Display public IPv4 address
alias myipv6='curl 6.ident.me 2>/dev/null | grep -Eo "[0-9a-fA-F:]+" || echo "IPv6 not available"' # Display public IPv6 address (If available)
alias netstat="ss -tuln" # Show active network connections
alias ping="ping -c 5" # Ping with 5 packets
alias hosts="sudo $EDITOR /etc/hosts" # Edit hosts file