Compare commits
3 Commits
5f6108a5e2
...
cdfd40e20d
Author | SHA1 | Date |
---|---|---|
David Kebler | cdfd40e20d | |
David Kebler | 7d9a9b2a5b | |
David Kebler | b40dfc3382 |
|
@ -55,3 +55,18 @@ gedit() { ${GEDITOR:-xed} $@; }
|
|||
unlocku () ( faillock --user $1 --reset )
|
||||
|
||||
rsynchg() { rsync --help | grep "\-$1"; }
|
||||
|
||||
|
||||
gip () {
|
||||
if which jqx &> /dev/null; then
|
||||
curl -s "https://dns.google/resolve?name=$1" | jq -r '.Answer[] | .data'
|
||||
return 0
|
||||
else
|
||||
echo install jq to use this function
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
gpip () {
|
||||
curl https://ipv4.nsupdate.info/myip
|
||||
}
|
|
@ -74,3 +74,5 @@ fi
|
|||
alias portl="ss -tunl | grep"
|
||||
|
||||
alias ipg="ip addr show | grep -A1 "
|
||||
|
||||
alias pubip="curl https://ipv4.nsupdate.info/myip; echo"
|
Loading…
Reference in New Issue