Skip to content

Instantly share code, notes, and snippets.

View AdamMagaluk's full-sized avatar
🚀

Adam Magaluk AdamMagaluk

🚀
View GitHub Profile
@AdamMagaluk
AdamMagaluk / .bash_profile
Last active December 11, 2015 06:09 — forked from kevinohara80/.bash_profile
Forked from Kevin O'Hara, but added mercurial fall back when git repo does not exist.
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)]/"`
@AdamMagaluk
AdamMagaluk / README.md
Last active May 8, 2017 14:09 — forked from leesheppard/README.md
Homebrew Formula patching old ImageMagick release 6.9.7-10

Install

brew install https://gist.githubusercontent.com/AdamMagaluk/6d190d95839387d7ebbfcdc7cfbad2f8/raw/6d190d95839387d7ebbfcdc7cfbad2f8/imagemagick.rb

Pin this version

To prevent upgrades you can pin this version.

brew pin imagemagick