diff --git a/zsh/zshrc b/zsh/zshrc index 27f69b6..bd642a3 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -302,33 +302,6 @@ bindkey '^I' complete-word # complete on tab, leave expansion to _expand #stty erase '^?' TERMINFO=$HOME/.terminfo -# curl convenience functions -# ========================== -curl=`which curl` -if [[ -x "$curl" ]]; then - - # get - function get { - $curl -i -H 'x-requested-with: XMLHttpRequest' "$1" - } - - # put - function put { - $curl -i -X PUT -H 'x-requested-with: XMLHttpRequest' -H 'content-type: application/json' -d "$2" "$1" - } - - # post - function post { - $curl -i -X POST -H 'x-requested-with: XMLHttpRequest' -H 'content-type: application/json' -d "$2" "$1" - } - - # delete - function delete { - $curl -i -X DELETE -H 'x-requested-with: XMLHttpRequest' "$1" - } - -fi - # 9. Completion # =============