add 'take' function ported from oh-my-zsh