add ethgasprice function
This commit is contained in:
parent
485a5fa099
commit
507f32e005
@ -245,6 +245,8 @@ grepless(){
|
|||||||
grep -ir --color=always "$*" --exclude-dir=".git" --exclude-dir="node_modules" . | less -RX
|
grep -ir --color=always "$*" --exclude-dir=".git" --exclude-dir="node_modules" . | less -RX
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# curl shortcuts
|
||||||
cheatsh() {
|
cheatsh() {
|
||||||
curl cheat.sh/"$1"
|
curl cheat.sh/"$1"
|
||||||
}
|
}
|
||||||
@ -254,6 +256,11 @@ watip() {
|
|||||||
# dig +short myip.opendns.com @resolver1.opendns.com
|
# dig +short myip.opendns.com @resolver1.opendns.com
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ethgasprice() {
|
||||||
|
avg=$(curl -sSL https://ethgasstation.info/api/ethgasAPI.json? | jq .average)
|
||||||
|
echo "Average Price in GWEI: $((avg/10))"
|
||||||
|
}
|
||||||
|
|
||||||
## prompt stuff ##
|
## prompt stuff ##
|
||||||
|
|
||||||
# git prompt function
|
# git prompt function
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user