mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
rc: use OpenDNS for myip*
This commit is contained in:
parent
2560e7a2a9
commit
a6135f8cb2
@ -388,9 +388,9 @@ alias gpg-key-count="gpg --export -a|gpg --import"
|
|||||||
alias follow="tail -F"
|
alias follow="tail -F"
|
||||||
|
|
||||||
#myip shows current IP. This was a function.
|
#myip shows current IP. This was a function.
|
||||||
alias myip="curl -s http://icanhazip.com"
|
alias myip4="dig +short myip.opendns.com A @208.67.222.222"
|
||||||
alias myip4="dig A +short myip.opendns.com @resolver1.opendns.com"
|
alias myip6="dig +short myip.opendns.com AAAA @2620:0:ccc::2"
|
||||||
alias myip6="curl -s6 http://icanhazip.com"
|
alias myip="myip4 && myip6"
|
||||||
|
|
||||||
# Update groups without logging out. Requires entering password. Source: http://blog.edwards-research.com/2010/10/linux-refresh-group-membership-without-logging-out/
|
# Update groups without logging out. Requires entering password. Source: http://blog.edwards-research.com/2010/10/linux-refresh-group-membership-without-logging-out/
|
||||||
alias refreshgroups="exec su -l $USER"
|
alias refreshgroups="exec su -l $USER"
|
||||||
|
6
rc/zshrc
6
rc/zshrc
@ -362,9 +362,9 @@ alias gpg-key-count="gpg --export -a|gpg --import"
|
|||||||
alias follow="tail -F"
|
alias follow="tail -F"
|
||||||
|
|
||||||
#myip shows current IP. This was a function.
|
#myip shows current IP. This was a function.
|
||||||
alias myip="curl -s http://icanhazip.com"
|
alias myip4="dig +short myip.opendns.com A @208.67.222.222"
|
||||||
alias myip4="dig A +short myip.opendns.com @resolver1.opendns.com"
|
alias myip6="dig +short myip.opendns.com AAAA @2620:0:ccc::2"
|
||||||
alias myip6="curl -s6 http://icanhazip.com"
|
alias myip="myip4 && myip6"
|
||||||
|
|
||||||
# Update groups without logging out. Requires entering password. Source: http://blog.edwards-research.com/2010/10/linux-refresh-group-membership-without-logging-out/
|
# Update groups without logging out. Requires entering password. Source: http://blog.edwards-research.com/2010/10/linux-refresh-group-membership-without-logging-out/
|
||||||
alias refreshgroups="exec su -l $USER"
|
alias refreshgroups="exec su -l $USER"
|
||||||
|
Loading…
Reference in New Issue
Block a user