Skip to content

Commit

Permalink
adding curlheader function
Browse files Browse the repository at this point in the history
  • Loading branch information
atomantic committed Jul 30, 2015
1 parent f78be42 commit 71fc250
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .shellfn
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,10 @@ rbenv() {
command rbenv "$command" "$@";;
esac
}

## curlheader will return the header value specified for a given URL
## usage: curlheader ${url} ${header}
function curlheader() {
echo "curl -s -D - $1 -o /dev/null | grep $2:"
curl -s -D - $1 -o /dev/null | grep $2:
}
2 changes: 1 addition & 1 deletion oh-my-zsh
Submodule oh-my-zsh updated from 3ea338 to 3d5b34

0 comments on commit 71fc250

Please sign in to comment.