brew install https://gist.githubusercontent.com/AdamMagaluk/6d190d95839387d7ebbfcdc7cfbad2f8/raw/6d190d95839387d7ebbfcdc7cfbad2f8/imagemagick.rb
To prevent upgrades you can pin this version.
brew pin imagemagick
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} | |
function parse_hg_branch() { | |
echo -ne "[`hg branch 2> /dev/null`"; if [ "`hg status 2> /dev/null`" ]; then echo "*]"; else echo "]"; fi | |
} | |
function parse_git_branch() { | |
B=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"` |