summaryrefslogtreecommitdiff
path: root/etc/functions/whichf
blob: 01026c4439d5debf95d4cae40cbb534ae3287c12 (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
}