mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-26 04:32:50 +01:00
bashrc & zshrc: update myip4
This commit is contained in:
parent
ec0300e69f
commit
94ddfe0702
2
bashrc
2
bashrc
@ -393,7 +393,7 @@ alias follow="tail -F"
|
||||
|
||||
#myip shows current IP. This was a function.
|
||||
alias myip="curl -s http://icanhazip.com"
|
||||
alias myip4="curl -s4 http://icanhazip.com"
|
||||
alias myip4="dig A +short myip.opendns.com @resolver1.opendns.com"
|
||||
alias myip6="curl -s6 http://icanhazip.com"
|
||||
|
||||
# Update groups without logging out. Requires entering password. Source: http://blog.edwards-research.com/2010/10/linux-refresh-group-membership-without-logging-out/
|
||||
|
2
zshrc
2
zshrc
@ -362,7 +362,7 @@ alias follow="tail -F"
|
||||
|
||||
#myip shows current IP. This was a function.
|
||||
alias myip="curl -s http://icanhazip.com"
|
||||
alias myip4="curl -s4 http://icanhazip.com"
|
||||
alias myip4="dig A +short myip.opendns.com @resolver1.opendns.com"
|
||||
alias myip6="curl -s6 http://icanhazip.com"
|
||||
|
||||
# Update groups without logging out. Requires entering password. Source: http://blog.edwards-research.com/2010/10/linux-refresh-group-membership-without-logging-out/
|
||||
|
Loading…
Reference in New Issue
Block a user