Change my local mkcd alias into a function
I was grepping for my mkcd alias in the wrong terminal and found
another version, which turned out to be a good thing as Frank's
implementation looks better :)
https://dev.0x50.de/projects/ftzsh/repository/revisions/master/entry/functions/mkcd
function hg_pull_and_see() {
if ! $HG_ROOT_CMD > /dev/null; then
print "Not a Mercurial repository!"
return -1
fi
local i=$(hg id -i)
hg pull -u
local j=$(hg id -i)
if [[ $i != $j ]];then
hg log --quiet -r${i}:tip --style=changelog
fi
}