summaryrefslogtreecommitdiff
path: root/etc/functions/whichf
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-04-02 11:32:38 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-04-02 11:32:38 +0200
commitf0f3c02a3ccde07d3dc79577c7eca41ea3e8e86f (patch)
treed0aaab1de872a30a94555d2da3b501e13e18c217 /etc/functions/whichf
parent81ac4a06bff278f07620804b7d4120342b1f6522 (diff)
Replace $var by ${var}
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
}