# builtins first
alias P='print -lr'

mkcd() {
	mkdir $* && cd ${argv[-1]}
}

# function for enabling xtrace for single line
trace() { "$@" }
functions -t trace
alias trace='trace '
compdef _precommand trace

# function for executing one command in a directory
ind() {
	local D RET
	D=$1
	shift
	pushd -q $D || return $?
	"$@"
	RET=$?
	popd -q
	return $RET
}

# now load conditionally from functions
autoload -Uz aliasinit
aliasinit