Fix the exit condition when the function is called outside of a git repository. Use zsh's `:t` History Expansion Modifier, as `$?` does not keep `git rev-parse`'s exit code, but rather `basename`'s.
checkout-worktree
/usr/bin/env
grep
~/media/