summaryrefslogtreecommitdiff
path: root/etc/functions/whichf
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/whichf')
-rw-r--r--etc/functions/whichf4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/functions/whichf b/etc/functions/whichf
index 01026c4..03bcbb7 100644
--- a/etc/functions/whichf
+++ b/etc/functions/whichf
@@ -1,7 +1,7 @@
## vim:ft=zsh
## locate the file corresponding to a function
-if [[ -n $(echo ${^fpath}/$1(-.N)) ]] {
- echo ${^fpath}/$1(-.N)
+if [[ -n $(echo ${^fpath}/${1}(-.N)) ]] {
+ echo ${^fpath}/${1}(-.N)
} else {
return 1
}