Skip to content

Commit 1328f12

Browse files
committed
Fix --multiple option generating ZSH hook that resolves with the program ''
{$1} works under BASH, but doesn't resolve to anything under ZSH. Just using $1 works correctly on both BASH and ZSH.
1 parent e0f76c6 commit 1328f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HookFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function generateHook($type, $programPath, $programName = null, $multiple
132132
$programName = $programName ?: $programPath;
133133

134134
if ($multiple) {
135-
$completionCommand = '${1} _completion';
135+
$completionCommand = '$1 _completion';
136136
} else {
137137
$completionCommand = $programPath . ' _completion';
138138
}

0 commit comments

Comments
 (0)