summaryrefslogtreecommitdiff
path: root/etc/functions/whichf
blob: 03bcbb7ae7c8fab7d263ccbf775255a0a742834c (plain)
1
2
3
4
5
6
7
## vim:ft=zsh
## locate the file corresponding to a function
if [[ -n $(echo ${^fpath}/${1}(-.N)) ]] {
	echo ${^fpath}/${1}(-.N)
} else {
	return 1
}