Skip to content

Instantly share code, notes, and snippets.

View neozenith's full-sized avatar

Josh Peak neozenith

View GitHub Profile
@neozenith
neozenith / colorised-curl.sh
Created March 13, 2018 02:26
Bash script helper function to colorise the verbose header output of curl
# Add this to your .bash_profile
ccurl() {
# Define escape code character
ESC_CODE=""
if [[ $OSTYPE == darwin* ]]; then
ESC_CODE=`echo -e "\033"`
else
ESC_CODE=`echo -e "\e"`
fi