diff --git a/files/bash/.bashrc b/files/bash/.bashrc index 6264331..aa8e002 100644 --- a/files/bash/.bashrc +++ b/files/bash/.bashrc @@ -245,6 +245,8 @@ grepless(){ grep -ir --color=always "$*" --exclude-dir=".git" --exclude-dir="node_modules" . | less -RX } + +# curl shortcuts cheatsh() { curl cheat.sh/"$1" } @@ -254,6 +256,11 @@ watip() { # 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 ## # git prompt function